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

#include <AMReX_PhysBCFunct.H>

Public Member Functions

 PhysBCFunct ()=default
 
 PhysBCFunct (const Geometry &geom, const Vector< BCRec > &bcr, F const &f)
 
 PhysBCFunct (const Geometry &geom, const Vector< BCRec > &bcr, F &&f)
 
void define (const Geometry &geom, const Vector< BCRec > &bcr, F const &f)
 
void define (const Geometry &geom, const Vector< BCRec > &bcr, F &&f)
 
void operator() (MultiFab &mf, int icomp, int ncomp, IntVect const &nghost, Real time, int bccomp)
 
void FillBoundary (MultiFab &mf, int icomp, int ncomp, IntVect const &nghost, Real time, int bccomp)
 

Private Attributes

Geometry m_geom
 
Vector< BCRecm_bcr
 
m_f
 

Constructor & Destructor Documentation

◆ PhysBCFunct() [1/3]

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

◆ PhysBCFunct() [2/3]

template<class F >
amrex::PhysBCFunct< F >::PhysBCFunct ( const Geometry geom,
const Vector< BCRec > &  bcr,
F const &  f 
)
inline

◆ PhysBCFunct() [3/3]

template<class F >
amrex::PhysBCFunct< F >::PhysBCFunct ( const Geometry geom,
const Vector< BCRec > &  bcr,
F &&  f 
)
inline

Member Function Documentation

◆ define() [1/2]

template<class F >
void amrex::PhysBCFunct< F >::define ( const Geometry geom,
const Vector< BCRec > &  bcr,
F &&  f 
)
inline

◆ define() [2/2]

template<class F >
void amrex::PhysBCFunct< F >::define ( const Geometry geom,
const Vector< BCRec > &  bcr,
F const &  f 
)
inline

◆ FillBoundary()

template<class F >
void amrex::PhysBCFunct< F >::FillBoundary ( MultiFab mf,
int  icomp,
int  ncomp,
IntVect const &  nghost,
Real  time,
int  bccomp 
)
inline

◆ operator()()

template<class F >
void amrex::PhysBCFunct< F >::operator() ( MultiFab mf,
int  icomp,
int  ncomp,
IntVect const &  nghost,
Real  time,
int  bccomp 
)
inline

create a grown domain box containing valid + periodic cells

if there are cells not in the valid + periodic grown box we need to fill them here

Based on BCRec for the domain, we need to make BCRec for this Box

Note that we pass 0 as starting component of bcrs.

Member Data Documentation

◆ m_bcr

template<class F >
Vector<BCRec> amrex::PhysBCFunct< F >::m_bcr
private

◆ m_f

template<class F >
F amrex::PhysBCFunct< F >::m_f
private

◆ m_geom

template<class F >
Geometry amrex::PhysBCFunct< F >::m_geom
private

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