AMR-Wind
v0.1.0
CFD solver for wind plant simulations
|
Subview of a Field or a ScratchField. More...
#include <ViewField.H>
Public Member Functions | |
ViewField (const ViewField &)=delete | |
ViewField & | operator= (const ViewField &)=delete |
ViewField (ViewField &&)=default | |
ViewField & | operator= (ViewField &&)=default |
std::string | name () const |
int | num_comp () const |
Number of components in this subview. More... | |
const amrex::IntVect & | num_grow () const |
FieldLoc | field_location () const |
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... | |
T & | source_field () |
Return a reference to the source field from which this view is derived. More... | |
const T & | source_field () const |
Public Attributes | |
friend | T |
Private Member Functions | |
ViewField (T &src, const int scomp=0, const int ncomp=1) | |
Private Attributes | |
T & | m_src |
The base field. More... | |
int | m_scomp |
Index of the starting component. More... | |
int | m_ncomp |
Number of sub-components in this view. More... | |
amrex::Vector< amrex::MultiFab > | m_data |
MultiFabs holding the alias views. More... | |
Subview of a Field or a ScratchField.
A ViewField instance holds MultiFab corresponding to a subview of a Field or a ScratchField. As the data is managed by the source Field or ScratchField, subview instances cannot be created directly but instead must be created using the Field::subview() and ScratchField::subview() methods.
|
delete |
|
default |
|
private |
|
inline |
|
inline |
|
inline |
Number of components in this subview.
|
inline |
|
inline |
Return the field data for a given level.
|
inline |
|
delete |
|
default |
|
inline |
Return a reference to the field repository that created this field.
|
inline |
Return a reference to the source field from which this view is derived.
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
private |
MultiFabs holding the alias views.
|
private |
Number of sub-components in this view.
|
private |
Index of the starting component.
|
private |
The base field.
friend amr_wind::ViewField< T >::T |