A list of DeriveRecs. More...
#include <AMReX_Derive.H>
Public Member Functions | |
DeriveList ()=default | |
The default constructor. More... | |
~DeriveList ()=default | |
DeriveList (const DeriveList &)=delete | |
DeriveList (DeriveList &&)=delete | |
DeriveList & | operator= (const DeriveList &)=delete |
DeriveList & | operator= (DeriveList &&)=delete |
bool | canDerive (const std::string &name) const |
Determines whether quantity identified by <name> is in the registry. More... | |
const DeriveRec * | get (const std::string &name) const |
Access the particular record in registry. More... | |
void | add (const std::string &name, IndexType result_type, int nvar_derive, DeriveFunc der_func, const DeriveRec::DeriveBoxMap &bx_map, Interpolater *interp=&pc_interp) |
Adds another entry to the registry. More... | |
void | add (const std::string &name, IndexType result_type, int nvar_derive, DeriveFunc3D der_func_3d, const DeriveRec::DeriveBoxMap &bx_map, Interpolater *interp=&pc_interp) |
void | add (const std::string &name, IndexType result_type, int nvar_derive, const DeriveFuncFab &der_func_fab, const DeriveRec::DeriveBoxMap &bx_map, Interpolater *interp=&pc_interp) |
void | add (const std::string &name, IndexType result_type, int nvar_derive, const DeriveFuncMF &der_func_mf, const DeriveRec::DeriveBoxMap &bx_map, Interpolater *interp=&pc_interp) |
void | add (const std::string &name, IndexType result_type, int nvar_derive, const DeriveRec::DeriveBoxMap &box_map=&DeriveRec::TheSameBox) |
This version doesn't take a Fortran function. More... | |
void | add (const std::string &name, IndexType res_typ, int nvar_derive, Vector< std::string > const &vars, DeriveFunc der_func, const DeriveRec::DeriveBoxMap &bx_map, Interpolater *interp=&pc_interp) |
Adds another entry to the registry. More... | |
void | add (const std::string &name, IndexType res_typ, int nvar_derive, Vector< std::string > const &vars, DeriveFunc3D der_func_3d, const DeriveRec::DeriveBoxMap &bx_map, Interpolater *interp=&pc_interp) |
void | add (const std::string &name, IndexType res_typ, int nvar_derive, Vector< std::string > const &vars, const DeriveFuncFab &der_func_fab, const DeriveRec::DeriveBoxMap &bx_map, Interpolater *interp=&pc_interp) |
void | add (const std::string &name, IndexType res_typ, int nvar_derive, Vector< std::string > const &vars, const DeriveFuncMF &der_func_mf, const DeriveRec::DeriveBoxMap &bx_map, Interpolater *interp=&pc_interp) |
void | addComponent (const std::string &name, const DescriptorList &d_list, int state_indx, int s_comp, int n_comp) |
Adds another StateRange to the DeriveRec identified by <name>. More... | |
std::list< DeriveRec > & | dlist () |
void | clear () |
Private Attributes | |
std::list< DeriveRec > | lst |
A list of DeriveRecs.
DeriveList manages and provides access to the list of DeriveRecs.
|
default |
The default constructor.
|
default |
|
delete |
|
delete |
void amrex::DeriveList::add | ( | const std::string & | name, |
IndexType | res_typ, | ||
int | nvar_derive, | ||
Vector< std::string > const & | vars, | ||
const DeriveFuncFab & | der_func_fab, | ||
const DeriveRec::DeriveBoxMap & | bx_map, | ||
Interpolater * | interp = &pc_interp |
||
) |
void amrex::DeriveList::add | ( | const std::string & | name, |
IndexType | res_typ, | ||
int | nvar_derive, | ||
Vector< std::string > const & | vars, | ||
const DeriveFuncMF & | der_func_mf, | ||
const DeriveRec::DeriveBoxMap & | bx_map, | ||
Interpolater * | interp = &pc_interp |
||
) |
void amrex::DeriveList::add | ( | const std::string & | name, |
IndexType | res_typ, | ||
int | nvar_derive, | ||
Vector< std::string > const & | vars, | ||
DeriveFunc | der_func, | ||
const DeriveRec::DeriveBoxMap & | bx_map, | ||
Interpolater * | interp = &pc_interp |
||
) |
Adds another entry to the registry.
name | |
result_type | |
nvar_derive | |
var_names | |
der_func | |
box_map | |
interp |
void amrex::DeriveList::add | ( | const std::string & | name, |
IndexType | res_typ, | ||
int | nvar_derive, | ||
Vector< std::string > const & | vars, | ||
DeriveFunc3D | der_func_3d, | ||
const DeriveRec::DeriveBoxMap & | bx_map, | ||
Interpolater * | interp = &pc_interp |
||
) |
void amrex::DeriveList::add | ( | const std::string & | name, |
IndexType | result_type, | ||
int | nvar_derive, | ||
const DeriveFuncFab & | der_func_fab, | ||
const DeriveRec::DeriveBoxMap & | bx_map, | ||
Interpolater * | interp = &pc_interp |
||
) |
void amrex::DeriveList::add | ( | const std::string & | name, |
IndexType | result_type, | ||
int | nvar_derive, | ||
const DeriveFuncMF & | der_func_mf, | ||
const DeriveRec::DeriveBoxMap & | bx_map, | ||
Interpolater * | interp = &pc_interp |
||
) |
void amrex::DeriveList::add | ( | const std::string & | name, |
IndexType | result_type, | ||
int | nvar_derive, | ||
const DeriveRec::DeriveBoxMap & | box_map = &DeriveRec::TheSameBox |
||
) |
This version doesn't take a Fortran function.
name | |
result_type | |
nvar_derive | |
box_map |
void amrex::DeriveList::add | ( | const std::string & | name, |
IndexType | result_type, | ||
int | nvar_derive, | ||
DeriveFunc | der_func, | ||
const DeriveRec::DeriveBoxMap & | bx_map, | ||
Interpolater * | interp = &pc_interp |
||
) |
Adds another entry to the registry.
name | |
result_type | |
nvar_derive | |
der_func | |
box_map | |
interp |
void amrex::DeriveList::add | ( | const std::string & | name, |
IndexType | result_type, | ||
int | nvar_derive, | ||
DeriveFunc3D | der_func_3d, | ||
const DeriveRec::DeriveBoxMap & | bx_map, | ||
Interpolater * | interp = &pc_interp |
||
) |
void amrex::DeriveList::addComponent | ( | const std::string & | name, |
const DescriptorList & | d_list, | ||
int | state_indx, | ||
int | s_comp, | ||
int | n_comp | ||
) |
Adds another StateRange to the DeriveRec identified by <name>.
name | |
d_list | |
state_indx | |
start_comp | |
ncomp |
bool amrex::DeriveList::canDerive | ( | const std::string & | name | ) | const |
Determines whether quantity identified by <name> is in the registry.
name |
|
inline |
std::list< DeriveRec > & amrex::DeriveList::dlist | ( | ) |
const DeriveRec * amrex::DeriveList::get | ( | const std::string & | name | ) | const |
Access the particular record in registry.
name |
|
delete |
|
delete |
|
private |