chombo-discharge
Public Member Functions | Protected Attributes | List of all members
MFInterfaceFAB< T > Class Template Reference

Class for holding BaseIVFAB<T> on the interface between two phases. More...

#include <CD_MFInterfaceFAB.H>

Public Member Functions

 MFInterfaceFAB ()
 Constructor. Must subsequently call define.
 
 MFInterfaceFAB (const MFLevelGrid &a_mflg, const DataIndex &a_dit)
 Full constructor. More...
 
virtual ~MFInterfaceFAB ()
 Destructor.
 
virtual void define (const MFLevelGrid &a_mflg, const DataIndex &a_dit)
 Define function. More...
 
virtual const IntVectSet & getIVS () const
 Get defining region. More...
 
virtual BaseIVFAB< T > & getIVFAB (const int a_phase)
 Get BaseIVFAB for specified phase. More...
 
virtual const BaseIVFAB< T > & getIVFAB (const int a_phase) const
 Get BaseIVFAB for specified phase. More...
 
virtual BaseIVFAB< T > * getPhasePtr (int a_phase)
 Get BaseIVFAB for specified phase. More...
 
virtual int numPhases () const
 Get number of phases.
 
virtual void setVal (const T &a_value)
 Set value on both fabs.
 

Protected Attributes

Vector< BaseIVFAB< T > * > m_phase
 Pointers to storage on both phases.
 
IntVectSet m_ivs
 Defining region.
 

Detailed Description

template<class T>
class MFInterfaceFAB< T >

Class for holding BaseIVFAB<T> on the interface between two phases.

Constructor & Destructor Documentation

◆ MFInterfaceFAB()

template<class T >
MFInterfaceFAB< T >::MFInterfaceFAB ( const MFLevelGrid a_mflg,
const DataIndex &  a_dit 
)

Full constructor.

Parameters
[in]a_mflgLevel grids
[in]a_ditData index for this FBA

Member Function Documentation

◆ define()

template<class T >
void MFInterfaceFAB< T >::define ( const MFLevelGrid a_mflg,
const DataIndex &  a_dit 
)
virtual

Define function.

Parameters
[in]a_mflgLevel grids
[in]a_ditData index for this FBA

◆ getIVFAB() [1/2]

template<class T >
BaseIVFAB< T > & MFInterfaceFAB< T >::getIVFAB ( const int  a_phase)
virtual

Get BaseIVFAB for specified phase.

Parameters
[in]a_phasePhase

◆ getIVFAB() [2/2]

template<class T >
const BaseIVFAB< T > & MFInterfaceFAB< T >::getIVFAB ( const int  a_phase) const
virtual

Get BaseIVFAB for specified phase.

Parameters
[in]a_phasePhase

◆ getIVS()

template<class T >
const IntVectSet & MFInterfaceFAB< T >::getIVS
virtual

Get defining region.

Returns
Returns the cells that are irregular on both phases

◆ getPhasePtr()

template<class T >
BaseIVFAB< T > * MFInterfaceFAB< T >::getPhasePtr ( int  a_phase)
virtual

Get BaseIVFAB for specified phase.

Parameters
[in]a_phasePhase

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