|
| ScratchField (const ScratchField &)=delete |
|
ScratchField & | operator= (const ScratchField &)=delete |
|
const std::string & | name () const |
| Name if available for this scratch field. More...
|
|
int | num_comp () const |
| Number of components for this field. More...
|
|
const amrex::IntVect & | num_grow () const |
| Ghost cells. More...
|
|
FieldLoc | field_location () const |
| Cell, node, face where the field is stored. More...
|
|
amrex::MultiFab & | operator() (int lev) |
| Return the field data for a given level. More...
|
|
const amrex::MultiFab & | operator() (int lev) const |
|
amrex::Vector< amrex::MultiFab * > | vec_ptrs () noexcept |
|
amrex::Vector< const amrex::MultiFab * > | vec_const_ptrs () const noexcept |
|
const FieldRepo & | repo () const |
| Return a reference to the field repository that created this field. More...
|
|
ViewField< ScratchField > | subview (const int scomp=0, const int ncomp=1) |
| Return a sub-view of the ScratchField instance. More...
|
|
void | fillpatch (amrex::Real time) noexcept |
|
void | fillpatch (amrex::Real time, const amrex::IntVect &ng) noexcept |
|
void | fillpatch (int lev, amrex::Real time, amrex::MultiFab &mfab, const amrex::IntVect &nghost) noexcept |
|
void | fillpatch (int lev, amrex::Real time, amrex::MultiFab &mfab, const amrex::IntVect &nghost, amrex::Vector< amrex::BCRec > &bcrec) noexcept |
|
A temporary computational field.
A ScratchField is similar to a Field in usage, but is temporary in nature. It is used as a scratch buffer to compute intermediate quantities. However, unlike fields these don't have multiple states, and cannot survive across a regrid. By default, FieldRepo returns a unique pointer to this instance and it is not safe to hold this pointer across timesteps.
At present, ScratchField cannot be used for I/O and/or post-processing utilities.