chombo-discharge
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
MFBaseIVFAB Class Reference

Multiphase BaseIVFAB<Real>. More...

#include <CD_MFBaseIVFAB.H>

Public Member Functions

 MFBaseIVFAB ()
 Weak construction.
 
 MFBaseIVFAB (const Vector< IntVectSet > &a_regions, const Vector< EBGraph > &a_phaseGraphs, const Vector< int > &a_nComp)
 Full constructor. More...
 
virtual ~MFBaseIVFAB ()
 Destructor (does nothing)
 
virtual BaseIVFAB< Real > & getIVFAB (const int a_phase)
 Get BaseIVFAB for specified phase. More...
 
virtual const BaseIVFAB< Real > & getIVFAB (const int a_phase) const
 Get BaseIVFAB for specified phase. More...
 
virtual BaseIVFAB< Real > * getPhasePtr (int a_phase)
 Get BaseIVFAB pointer for phase. More...
 
virtual int numPhases ()
 Get number of phases.
 
virtual void setVal (Real a_value)
 Set value. More...
 
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) More...
 
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 Public Member Functions

static int preAllocatable ()
 

Protected Attributes

Vector< BaseIVFAB< Real > * > m_phase
 

Detailed Description

Multiphase BaseIVFAB<Real>.

Constructor & Destructor Documentation

◆ MFBaseIVFAB()

MFBaseIVFAB::MFBaseIVFAB ( const Vector< IntVectSet > &  a_regions,
const Vector< EBGraph > &  a_phaseGraphs,
const Vector< int > &  a_nComp 
)

Full constructor.

Parameters
[in]a_regionsRegions on which to define the BaseIVFAB<Real>s
[in]a_phaseGraphsEBGraphs on the phases
[in]a_nCompNumber of components to allocate

Member Function Documentation

◆ 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_fromBoxRegion in source
[in]a_dstIntervalDestination interval
[in]a_toBoxRegion in destination
[in]a_srcSource.
[in]a_srcIntervalSource interval

◆ getIVFAB() [1/2]

BaseIVFAB< Real > & MFBaseIVFAB::getIVFAB ( const int  a_phase)
virtual

Get BaseIVFAB for specified phase.

Parameters
[in]a_phasePhase

◆ getIVFAB() [2/2]

const BaseIVFAB< Real > & MFBaseIVFAB::getIVFAB ( const int  a_phase) const
virtual

Get BaseIVFAB for specified phase.

Parameters
[in]a_phasePhase

◆ getPhasePtr()

BaseIVFAB< Real > * MFBaseIVFAB::getPhasePtr ( int  a_phase)
virtual

Get BaseIVFAB pointer for phase.

Parameters
[in]a_phasePhase

◆ setVal()

void MFBaseIVFAB::setVal ( Real  a_value)
virtual

Set value.

Parameters
[in]a_valuevalue in BaseIVFAB

The documentation for this class was generated from the following files: