![]() |
Block-Structured AMR Software Framework
|
A list of DeriveRecs. More...
#include <AMReX_Derive.H>
Public Member Functions | |
| DeriveList ()=default | |
| The default constructor. | |
| ~DeriveList ()=default | |
| Destructor (defaulted to keep header-only implementation trivial). | |
| DeriveList (const DeriveList &)=delete | |
| Non-copyable registry; it owns pointers to callback records. | |
| DeriveList (DeriveList &&)=delete | |
| Non-movable because the registry’s entries self-register with static globals. | |
| DeriveList & | operator= (const DeriveList &)=delete |
| Copy assignment disabled for the same reason as the copy constructor. | |
| DeriveList & | operator= (DeriveList &&)=delete |
| Move assignment disabled to avoid dangling pointers inside DeriveRec entries. | |
| bool | canDerive (const std::string &name) const |
Determines whether quantity identified by name is registered. | |
| const DeriveRec * | get (const std::string &name) const |
| Access the particular record in registry. | |
| void | add (const std::string &name, IndexType result_type, int nvar_derive, DeriveFunc der_func, const DeriveRec::DeriveBoxMap &bx_map, Interpolater *interp=&pc_interp) |
| Register a new derived quantity backed by a DeriveFunc. | |
| 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) |
| DeriveFunc3D variant (parameters mirror the DeriveFunc version). | |
| 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) |
| DeriveFuncFab variant (parameters mirror the DeriveFunc version). | |
| 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) |
| DeriveFuncMF variant (parameters mirror the DeriveFunc version). | |
| void | add (const std::string &name, IndexType result_type, int nvar_derive, const DeriveRec::DeriveBoxMap &box_map=&DeriveRec::TheSameBox) |
| Register a placeholder record without attaching a callable yet. | |
| 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) |
| Register a derived quantity and supply per-component names up front. | |
| 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) |
| Named-component variant using DeriveFunc3D callbacks. | |
| 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) |
| Named-component variant using DeriveFuncFab callbacks. | |
| 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) |
| Named-component variant using DeriveFuncMF callbacks. | |
| 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. | |
| std::list< DeriveRec > & | dlist () |
| Mutable access to the underlying list of records. | |
| void | clear () |
| Remove all registered derived records. | |
A list of DeriveRecs.
DeriveList manages and provides access to the list of DeriveRecs.
|
default |
The default constructor.
|
default |
Destructor (defaulted to keep header-only implementation trivial).
|
delete |
Non-copyable registry; it owns pointers to callback records.
|
delete |
Non-movable because the registry’s entries self-register with static globals.
| 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 |
||
| ) |
Named-component variant using DeriveFuncFab callbacks.
| 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 |
||
| ) |
Named-component variant using DeriveFuncMF callbacks.
| 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 |
||
| ) |
Register a derived quantity and supply per-component names up front.
| name | Derived quantity name. |
| res_typ | Index type describing the derived FAB layout. |
| nvar_derive | Number of components produced. |
| vars | Component names (size nvar_derive). |
| der_func | Function pointer to invoke. |
| bx_map | Mapping from destination boxes to source boxes. |
| interp | Interpolater used on finer levels. |
| 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 |
||
| ) |
Named-component variant using DeriveFunc3D callbacks.
| 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 |
||
| ) |
DeriveFuncFab variant (parameters mirror the DeriveFunc version).
| 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 |
||
| ) |
DeriveFuncMF variant (parameters mirror the DeriveFunc version).
| void amrex::DeriveList::add | ( | const std::string & | name, |
| IndexType | result_type, | ||
| int | nvar_derive, | ||
| const DeriveRec::DeriveBoxMap & | box_map = &DeriveRec::TheSameBox |
||
| ) |
Register a placeholder record without attaching a callable yet.
| name | Derived quantity name. |
| result_type | Index type describing the derived FAB layout. |
| nvar_derive | Number of components produced. |
| box_map | Mapping from destination boxes to required source boxes. |
| 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 |
||
| ) |
Register a new derived quantity backed by a DeriveFunc.
| name | Derived quantity name. |
| result_type | Index type describing the derived FAB layout. |
| nvar_derive | Number of components produced. |
| der_func | Function pointer to invoke. |
| bx_map | Mapping from destination boxes to required source boxes. |
| interp | Interpolater used on finer levels (defaults to piecewise-constant). |
| 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 |
||
| ) |
DeriveFunc3D variant (parameters mirror the DeriveFunc version).
| 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 | Derived quantity being augmented. |
| d_list | Descriptor registry providing metadata. |
| state_indx | State descriptor index supplying data. |
| s_comp | Starting component within that descriptor. |
| n_comp | Number of components included in the range. |
| bool amrex::DeriveList::canDerive | ( | const std::string & | name | ) | const |
Determines whether quantity identified by name is registered.
| name | Derived quantity name. |
|
inline |
Remove all registered derived records.
| std::list< DeriveRec > & amrex::DeriveList::dlist | ( | ) |
Mutable access to the underlying list of records.
| const DeriveRec * amrex::DeriveList::get | ( | const std::string & | name | ) | const |
Access the particular record in registry.
| name | Derived quantity name. |
|
delete |
Copy assignment disabled for the same reason as the copy constructor.
|
delete |
Move assignment disabled to avoid dangling pointers inside DeriveRec entries.