Block-Structured AMR Software Framework
amrex::GpuBndryFuncFab< F > Class Template Reference

#include <AMReX_PhysBCFunct.H>

Public Member Functions

 GpuBndryFuncFab ()=default
 
 GpuBndryFuncFab (F const &a_f)
 
 GpuBndryFuncFab (F &&a_f)
 
void operator() (Box const &bx, FArrayBox &dest, int dcomp, int numcomp, Geometry const &geom, Real time, const Vector< BCRec > &bcr, int bcomp, int orig_comp)
 
template<class FF >
void ccfcdoit (Box const &bx, FArrayBox &dest, int dcomp, int numcomp, Geometry const &geom, Real time, const Vector< BCRec > &bcr, int bcomp, int orig_comp, FF const &fillfunc)
 
void nddoit (Box const &bx, FArrayBox &dest, int dcomp, int numcomp, Geometry const &geom, Real time, const Vector< BCRec > &bcr, int bcomp, int orig_comp)
 

Protected Attributes

m_user_f
 

Detailed Description

template<class F>
class amrex::GpuBndryFuncFab< F >

In this gpu version, F is provided by the user. It needs to have a device operator() that can work on a cell/node for boundaries not handled by amrex::fab_filcc/fab_filnd.

Constructor & Destructor Documentation

◆ GpuBndryFuncFab() [1/3]

template<class F >
amrex::GpuBndryFuncFab< F >::GpuBndryFuncFab ( )
default

◆ GpuBndryFuncFab() [2/3]

template<class F >
amrex::GpuBndryFuncFab< F >::GpuBndryFuncFab ( F const &  a_f)
inline

◆ GpuBndryFuncFab() [3/3]

template<class F >
amrex::GpuBndryFuncFab< F >::GpuBndryFuncFab ( F &&  a_f)
inline

Member Function Documentation

◆ ccfcdoit()

template<class F >
template<class FF >
void amrex::GpuBndryFuncFab< F >::ccfcdoit ( Box const &  bx,
FArrayBox dest,
int  dcomp,
int  numcomp,
Geometry const &  geom,
Real  time,
const Vector< BCRec > &  bcr,
int  bcomp,
int  orig_comp,
FF const &  fillfunc 
)

◆ nddoit()

template<class F >
void amrex::GpuBndryFuncFab< F >::nddoit ( Box const &  bx,
FArrayBox dest,
int  dcomp,
int  numcomp,
Geometry const &  geom,
Real  time,
const Vector< BCRec > &  bcr,
int  bcomp,
int  orig_comp 
)

◆ operator()()

template<class F >
void amrex::GpuBndryFuncFab< F >::operator() ( Box const &  bx,
FArrayBox dest,
int  dcomp,
int  numcomp,
Geometry const &  geom,
Real  time,
const Vector< BCRec > &  bcr,
int  bcomp,
int  orig_comp 
)

Member Data Documentation

◆ m_user_f

template<class F >
F amrex::GpuBndryFuncFab< F >::m_user_f
protected

The documentation for this class was generated from the following file: