WarpX
Classes | Functions
WarpXParserWrapper.H File Reference
#include "Parser/WarpXParser.H"
#include "Parser/GpuParser.H"
#include <AMReX_Gpu.H>
#include <memory>

Go to the source code of this file.

Classes

struct  HostDeviceParser< N >
 The HostDeviceParser struct is non-owning and is suitable for being value captured by device lamba. More...
 
struct  ParserWrapper< N >
 The ParserWrapper struct is constructed to safely use the GpuParser class that can essentially be though of as a raw pointer. The GpuParser does not have an explicit destructor and the AddPlasma subroutines handle the GpuParser in a safe way. The ParserWrapper struct is used to avoid memory leak in the EB parser functions. More...
 

Functions

template<int N>
HostDeviceParser< N > getParser (ParserWrapper< N > const *parser_wrapper)
 
template<int N>
HostDeviceParser< N > getParser (std::unique_ptr< ParserWrapper< N > > const &parser_wrapper)
 

Function Documentation

◆ getParser() [1/2]

template<int N>
HostDeviceParser<N> getParser ( ParserWrapper< N > const *  parser_wrapper)

◆ getParser() [2/2]

template<int N>
HostDeviceParser<N> getParser ( std::unique_ptr< ParserWrapper< N > > const &  parser_wrapper)