Multiphase BaseIVFAB<Real>.
More...
#include <CD_MFBaseIVFAB.H>
|
|
| MFBaseIVFAB () |
| | Weak construction.
|
| |
| | MFBaseIVFAB (const Vector< IntVectSet > &a_regions, const Vector< EBGraph > &a_phaseGraphs, const Vector< int > &a_nComp) |
| | Full constructor.
|
| |
|
virtual | ~MFBaseIVFAB () |
| | Destructor (does nothing)
|
| |
| virtual BaseIVFAB< Real > & | getIVFAB (const int a_phase) |
| | Get BaseIVFAB for specified phase.
|
| |
| virtual const BaseIVFAB< Real > & | getIVFAB (const int a_phase) const |
| | Get BaseIVFAB for specified phase.
|
| |
| virtual BaseIVFAB< Real > * | getPhasePtr (int a_phase) |
| | Get BaseIVFAB pointer for phase.
|
| |
| virtual int | numPhases () |
| | Get number of phases.
|
| |
| virtual void | setVal (Real a_value) |
| | Set value.
|
| |
| virtual void | copy (const Box &a_fromBox, const Interval &a_dst_interv, const Box &a_toBox, const MFBaseIVFAB &a_src, const Interval &a_srcInterv) |
| | Copy function (see Chombo docs)
|
| |
| virtual int | size (const Box &R, const Interval &comps) const |
| | Size function. Required for LevelData construction.
|
| |
| virtual void | linearOut (void *buf, const Box &R, const Interval &comps) const |
| | Linearization function.
|
| |
| virtual void | linearIn (void *buf, const Box &R, const Interval &comps) |
| | Linearization function.
|
| |
|
| static int | preAllocatable () |
| | Linearization preallocation query. Required for LevelData construction.
|
| |
|
|
Vector< BaseIVFAB< Real > * > | m_phase |
| | Phase-indexed pointers to BaseIVFAB<Real> storage.
|
| |
Multiphase BaseIVFAB<Real>.
◆ MFBaseIVFAB()
| MFBaseIVFAB::MFBaseIVFAB |
( |
const Vector< IntVectSet > & |
a_regions, |
|
|
const Vector< EBGraph > & |
a_phaseGraphs, |
|
|
const Vector< int > & |
a_nComp |
|
) |
| |
Full constructor.
- Parameters
-
| [in] | a_regions | Regions on which to define the BaseIVFAB<Real>s |
| [in] | a_phaseGraphs | EBGraphs on the phases |
| [in] | a_nComp | Number of components to allocate |
◆ copy()
| void MFBaseIVFAB::copy |
( |
const Box & |
a_fromBox, |
|
|
const Interval & |
a_dst_interv, |
|
|
const Box & |
a_toBox, |
|
|
const MFBaseIVFAB & |
a_src, |
|
|
const Interval & |
a_srcInterv |
|
) |
| |
|
virtual |
Copy function (see Chombo docs)
- Parameters
-
| [in] | a_fromBox | Region in source |
| [in] | a_toBox | Region in destination |
| [in] | a_src | Source. |
| [in] | a_dst_interv | Dst_interv |
| [in] | a_srcInterv | Src interv |
◆ getIVFAB() [1/2]
| BaseIVFAB< Real > & MFBaseIVFAB::getIVFAB |
( |
const int |
a_phase | ) |
|
|
virtual |
Get BaseIVFAB for specified phase.
- Parameters
-
- Returns
- Reference to the BaseIVFAB for the given phase.
◆ getIVFAB() [2/2]
| const BaseIVFAB< Real > & MFBaseIVFAB::getIVFAB |
( |
const int |
a_phase | ) |
const |
|
virtual |
Get BaseIVFAB for specified phase.
- Parameters
-
- Returns
- Const reference to the BaseIVFAB for the given phase.
◆ getPhasePtr()
| BaseIVFAB< Real > * MFBaseIVFAB::getPhasePtr |
( |
int |
a_phase | ) |
|
|
virtual |
Get BaseIVFAB pointer for phase.
- Parameters
-
- Returns
- Pointer to the BaseIVFAB for the given phase.
◆ linearIn()
| void MFBaseIVFAB::linearIn |
( |
void * |
buf, |
|
|
const Box & |
R, |
|
|
const Interval & |
comps |
|
) |
| |
|
virtual |
Linearization function.
- Parameters
-
| [in,out] | buf | Input/output buffer |
| [in] | R | Region |
| [in] | comps | Interval of components |
◆ linearOut()
| void MFBaseIVFAB::linearOut |
( |
void * |
buf, |
|
|
const Box & |
R, |
|
|
const Interval & |
comps |
|
) |
| const |
|
virtual |
Linearization function.
- Parameters
-
| [out] | buf | Output buffer |
| [in] | R | Region |
| [in] | comps | Interval of components |
◆ numPhases()
| int MFBaseIVFAB::numPhases |
( |
| ) |
|
|
virtual |
Get number of phases.
- Returns
- Number of phases.
◆ preAllocatable()
| int MFBaseIVFAB::preAllocatable |
( |
| ) |
|
|
static |
Linearization preallocation query. Required for LevelData construction.
- Returns
- Returns 1 (pre-allocatable).
◆ setVal()
| void MFBaseIVFAB::setVal |
( |
Real |
a_value | ) |
|
|
virtual |
Set value.
- Parameters
-
| [in] | a_value | value in BaseIVFAB |
◆ size()
| int MFBaseIVFAB::size |
( |
const Box & |
R, |
|
|
const Interval & |
comps |
|
) |
| const |
|
virtual |
Size function. Required for LevelData construction.
- Parameters
-
| [in] | R | Region |
| [in] | comps | Interval of components |
- Returns
- Linearized buffer size in bytes.
The documentation for this class was generated from the following files: