![]() |
Block-Structured AMR Software Framework
|
Attributes of StateData. More...
#include <AMReX_StateDescriptor.H>
Classes | |
| class | BndryFunc |
Public Types | |
| enum | TimeCenter { Point = 0 , Interval } |
| Defines the temporal centeredness of data. More... | |
Public Member Functions | |
| StateDescriptor () noexcept | |
| The default constructor. | |
| StateDescriptor (IndexType btyp, TimeCenter ttyp, int ident, int nextra, int num_comp, InterpBase *interp, bool extrap=false, bool store_in_checkpoint=true) | |
| Constructor that sets all data members. | |
| void | define (IndexType btyp, TimeCenter ttyp, int ident, int nextra, int num_comp, InterpBase *interp, bool extrap=false, bool store_in_checkpoint=true) |
| Define the data members if constructed with default constructor. | |
| void | setComponent (int comp, const std::string &nm, const BCRec &bc, const BndryFunc &func, InterpBase *interp=nullptr, int max_map_start_comp=-1, int min_map_end_comp=-1) |
Configure metadata for component comp. | |
| void | setComponent (int comp, const std::string &nm, const BCRec &bc, const BndryFunc &func, InterpBase *interp, bool a_primary, int groupsize) |
Configure component comp using explicit primary/groupsize flags. | |
| void | resetComponentBCs (int comp, const BCRec &bcr, const BndryFunc &func) |
Resets boundary condition data for component comp. | |
| void | dumpNames (std::ostream &os, int start_comp, int num_comp) const |
| Output names of components. | |
| IndexType | getType () const noexcept |
| Returns the IndexType. | |
| StateDescriptor::TimeCenter | timeType () const noexcept |
| Returns StateDescriptor::TimeCenter. | |
| int | nComp () const noexcept |
| Returns number of components. | |
| int | nExtra () const noexcept |
| Returns the grow factor. | |
| InterpBase * | interp () const noexcept |
| Returns the interpolater. | |
| InterpBase * | interp (int i) const noexcept |
Returns the interpolater used by component i. | |
| const std::string & | name (int i) const noexcept |
Returns the name of component i. | |
| const BCRec & | getBC (int i) const noexcept |
Returns the BCRec of component i. | |
| const Vector< BCRec > & | getBCs () const noexcept |
| Returns all BCRecs. | |
| const BndryFunc & | bndryFill (int i) const noexcept |
Returns the BndryFunc associated with component i. | |
| int | inRange (int sc, int nc) const noexcept |
Return true if the component range [sc, sc+nc) lies within this descriptor. | |
| bool | identicalInterps (int scomp, int ncomp) const noexcept |
Return true if all components in [scomp, scomp+ncomp) share the same interpolater. | |
| std::vector< std::pair< int, int > > | sameInterps (int scomp, int ncomp) const |
Returns contiguous component ranges (start,count) that share identical interpolaters within [scomp, scomp+ncomp). | |
| bool | extrap () const noexcept |
| Can extrapolate in time. | |
| bool | store_in_checkpoint () const noexcept |
| Should store this StateData in the checkpoint file. | |
| bool | primary (int i) const noexcept |
Return whether component i is the primary entry of a grouped set. | |
| int | groupsize (int i) const noexcept |
Return the size of the component group anchored at primary component i. | |
| bool | RunOnGPU () const noexcept |
| will it run on gpu? | |
| bool | hasBndryFuncFab () const noexcept |
| has new fab version of BndryFunc? | |
Static Public Member Functions | |
| static void | setBndryFuncThreadSafety (int ext_dir_safe) noexcept |
Control thread-safety flag for boundary fill functors (nonzero ext_dir_safe triggers thread-safe handling). | |
Friends | |
| class | DescriptorList |
Attributes of StateData.
|
inlinenoexcept |
The default constructor.
| amrex::StateDescriptor::StateDescriptor | ( | IndexType | btyp, |
| StateDescriptor::TimeCenter | ttyp, | ||
| int | ident, | ||
| int | nextra, | ||
| int | num_comp, | ||
| InterpBase * | interp, | ||
| bool | extrap = false, |
||
| bool | store_in_checkpoint = true |
||
| ) |
Constructor that sets all data members.
| btyp | Index type describing cell/nodal staggering. |
| ttyp | Time-centering (Point or Interval). |
| ident | Identifier assigned to this descriptor. |
| nextra | Number of ghost cells. |
| num_comp | Number of components stored in the state. |
| interp | Default interpolater to use between levels. |
| extrap | Whether to allow time extrapolation outside stored intervals. |
| store_in_checkpoint | Should this descriptor be persisted in checkpoints? |
|
noexcept |
Returns the BndryFunc associated with component i.
| i | Component index. |
| void amrex::StateDescriptor::define | ( | IndexType | btyp, |
| StateDescriptor::TimeCenter | ttyp, | ||
| int | ident, | ||
| int | nextra, | ||
| int | num_comp, | ||
| InterpBase * | interp, | ||
| bool | extrap = false, |
||
| bool | store_in_checkpoint = true |
||
| ) |
Define the data members if constructed with default constructor.
| btyp | Index type describing cell/nodal staggering. |
| ttyp | Time-centering (Point or Interval). |
| ident | Identifier assigned to this descriptor. |
| nextra | Number of ghost cells. |
| num_comp | Number of components stored in the state. |
| interp | Default interpolater to use between levels. |
| extrap | Whether to allow time extrapolation outside stored intervals. |
| store_in_checkpoint | Should this descriptor be persisted in checkpoints? |
Output names of components.
| os | |
| start_comp | |
| num_comp |
|
noexcept |
Can extrapolate in time.
Returns the BCRec of component i.
| i | Component index. |
|
noexcept |
Returns the IndexType.
Return the size of the component group anchored at primary component i.
|
inlinenoexcept |
has new fab version of BndryFunc?
Return true if all components in [scomp, scomp+ncomp) share the same interpolater.
| scomp | Starting component index. |
| ncomp | Number of components inspected. |
Return true if the component range [sc, sc+nc) lies within this descriptor.
| sc | Starting component index. |
| nc | Number of components in the range. |
|
noexcept |
Returns the interpolater.
|
noexcept |
Returns the interpolater used by component i.
| i | Component index. |
|
noexcept |
Returns the name of component i.
| i | Component index. |
|
noexcept |
Returns number of components.
|
noexcept |
Returns the grow factor.
|
inlinenoexcept |
Return whether component i is the primary entry of a grouped set.
| void amrex::StateDescriptor::resetComponentBCs | ( | int | comp, |
| const BCRec & | bcr, | ||
| const BndryFunc & | func | ||
| ) |
Resets boundary condition data for component comp.
| comp | Component index to update. |
| bcr | Replacement BCRec. |
| func | Replacement physical BC functor. |
|
inlinenoexcept |
will it run on gpu?
| std::vector< std::pair< int, int > > amrex::StateDescriptor::sameInterps | ( | int | scomp, |
| int | ncomp | ||
| ) | const |
Returns contiguous component ranges (start,count) that share identical interpolaters within [scomp, scomp+ncomp).
|
inlinestaticnoexcept |
Control thread-safety flag for boundary fill functors (nonzero ext_dir_safe triggers thread-safe handling).
| void amrex::StateDescriptor::setComponent | ( | int | comp, |
| const std::string & | nm, | ||
| const BCRec & | bc, | ||
| const BndryFunc & | func, | ||
| InterpBase * | interp, | ||
| bool | a_primary, | ||
| int | groupsize | ||
| ) |
Configure component comp using explicit primary/groupsize flags.
| comp | Component index to configure. |
| nm | Name of the component. |
| bc | Boundary condition recipe for the component. |
| func | Boundary fill functor for physical BCs. |
| interp | Optional per-component interpolater override. |
| a_primary | Whether this component is the primary entry for a grouped set. |
| groupsize | How many coupled components participate in the group anchored here. |
| void amrex::StateDescriptor::setComponent | ( | int | comp, |
| const std::string & | nm, | ||
| const BCRec & | bc, | ||
| const BndryFunc & | func, | ||
| InterpBase * | interp = nullptr, |
||
| int | max_map_start_comp = -1, |
||
| int | min_map_end_comp = -1 |
||
| ) |
Configure metadata for component comp.
| comp | Component index to configure. |
| nm | Name of the component. |
| bc | Boundary condition recipe for the component. |
| func | Boundary fill functor for physical BCs. |
| interp | Optional per-component interpolater override. |
| max_map_start_comp | If >=0, restricts upper bound of remapping region. |
| min_map_end_comp | If >=0, restricts lower bound of remapping region. |
|
noexcept |
Should store this StateData in the checkpoint file.
|
noexcept |
Returns StateDescriptor::TimeCenter.
|
friend |