Chombo + EB + MF  3.2
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
MFCellFAB Class Reference

#include <MFCellFAB.H>

Public Member Functions

 MFCellFAB ()
 
virtual ~MFCellFAB ()
 
 MFCellFAB (const Vector< EBISBox > &a_phaseGraphs, const Box &a_region, const Vector< int > &a_nVar)
 
void setVal (Vector< Real > a_value)
 
void setVal (const Real &a_value)
 
void setVal (Real a_val, const Box &a_region, int startcomp, int ncomp)
 
int nComp (int a_phase) const
 
int numPhases () const
 
const Boxbox () const
 
EBCellFABgetPhase (int a_phase)
 
const EBCellFABgetPhase (int a_phase) const
 
EBCellFABgetPhasePtr (int a_phase)
 
void copy (const Box &RegionFrom, const Interval &destInt, const Box &RegionTo, const MFCellFAB &source, const Interval &srcInt)
 
int size (const Box &R, const Interval &comps) const
 
void linearOut (void *buf, const Box &R, const Interval &comps) const
 
void linearIn (void *buf, const Box &R, const Interval &comps)
 
 MFCellFAB (const Box &a_region, int a_nVar)
 invalid but necessary for leveldata to compile More...
 
MFCellFABnegate (void)
 
MFCellFABoperator+= (const MFCellFAB &a_mffab)
 
MFCellFABplus (const MFCellFAB &a_ebfab, int a_srccomp, int a_destcomp, int a_numcomp)
 
MFCellFABplus (const MFCellFAB &a_src, const Box &a_srcbox, const Box &a_destbox, const Real &a_scale, int a_srccomp, int a_destcomp, int a_numcomp)
 
MFCellFABoperator-= (const MFCellFAB &a_mffab)
 
MFCellFABminus (const MFCellFAB &a_ebfab, int a_srccomp, int a_destcomp, int a_numcomp)
 
MFCellFABoperator*= (const MFCellFAB &a_mffab)
 
MFCellFABmult (const MFCellFAB &a_ebfab, int a_srccomp, int a_destcomp, int a_numcomp)
 
MFCellFABoperator/= (const MFCellFAB &a_mffab)
 
MFCellFABdivide (const MFCellFAB &a_ebfab, int a_srccomp, int a_destcomp, int a_numcomp)
 
MFCellFABoperator+= (const Real &a_scalar)
 
MFCellFABoperator-= (const Real &a_scalar)
 
MFCellFABoperator*= (const Real &a_scalar)
 
MFCellFABmult (Real a_scalar)
 
MFCellFABoperator/= (const Real &a_scalar)
 
MFCellFABplus (const MFCellFAB &a_src, Real a_scalar)
 
MFCellFABcopy (const MFCellFAB &a_src)
 
virtual Real norm (int a_power, int a_comp, int a_numComp) const
 (Not implemented) Returns the Lp-norm of this MFCellFAB More...
 
virtual Real norm (const Box &a_subbox, int a_power, int a_comp, int a_numComp) const
 (Not implemented) Returns the Lp-norm of this MFCellFAB within a region More...
 
virtual Real sumPow (const Box &a_subbox, int a_power, int a_comp, int a_numComp) const
 (Not implemented) Returns a sum of powers of a subset of this MFCellFAB More...
 
Real dotProduct (const MFCellFAB &ebfab2) const
 (Not implemented) Return the dot product of this MFCellFAB with another More...
 
Real dotProduct (const MFCellFAB &ebfab2, const Box &a_box) const
 

Static Public Member Functions

static int preAllocatable ()
 

Private Member Functions

void operator= (const MFCellFAB &rhs)
 

Private Attributes

Vector< EBCellFAB * > m_phase
 
Box m_box
 

Constructor & Destructor Documentation

◆ MFCellFAB() [1/3]

MFCellFAB::MFCellFAB ( )
inline

References setVal(), and ~MFCellFAB().

◆ ~MFCellFAB()

virtual MFCellFAB::~MFCellFAB ( )
virtual

Referenced by MFCellFAB().

◆ MFCellFAB() [2/3]

MFCellFAB::MFCellFAB ( const Vector< EBISBox > &  a_phaseGraphs,
const Box a_region,
const Vector< int > &  a_nVar 
)

◆ MFCellFAB() [3/3]

MFCellFAB::MFCellFAB ( const Box a_region,
int  a_nVar 
)
inline

invalid but necessary for leveldata to compile

References MayDay::Error().

Member Function Documentation

◆ setVal() [1/3]

void MFCellFAB::setVal ( Vector< Real a_value)

Referenced by MFCellFAB().

◆ setVal() [2/3]

void MFCellFAB::setVal ( const Real a_value)

◆ setVal() [3/3]

void MFCellFAB::setVal ( Real  a_val,
const Box a_region,
int  startcomp,
int  ncomp 
)

◆ nComp()

int MFCellFAB::nComp ( int  a_phase) const
inline

References m_phase.

◆ numPhases()

int MFCellFAB::numPhases ( ) const
inline

References m_phase, and Vector< T >::size().

◆ box()

const Box& MFCellFAB::box ( ) const
inline

References m_box.

◆ getPhase() [1/2]

EBCellFAB& MFCellFAB::getPhase ( int  a_phase)
inline

References m_phase.

◆ getPhase() [2/2]

const EBCellFAB& MFCellFAB::getPhase ( int  a_phase) const
inline

References m_phase.

◆ getPhasePtr()

EBCellFAB* MFCellFAB::getPhasePtr ( int  a_phase)
inline

References copy(), and m_phase.

◆ copy() [1/2]

void MFCellFAB::copy ( const Box RegionFrom,
const Interval destInt,
const Box RegionTo,
const MFCellFAB source,
const Interval srcInt 
)

Referenced by getPhasePtr(), and negate().

◆ preAllocatable()

static int MFCellFAB::preAllocatable ( )
inlinestatic

References linearIn(), linearOut(), and size().

◆ size()

int MFCellFAB::size ( const Box R,
const Interval comps 
) const

Referenced by preAllocatable().

◆ linearOut()

void MFCellFAB::linearOut ( void *  buf,
const Box R,
const Interval comps 
) const

Referenced by preAllocatable().

◆ linearIn()

void MFCellFAB::linearIn ( void *  buf,
const Box R,
const Interval comps 
)

Referenced by preAllocatable().

◆ negate()

MFCellFAB& MFCellFAB::negate ( void  )
inline

◆ operator+=() [1/2]

MFCellFAB& MFCellFAB::operator+= ( const MFCellFAB a_mffab)

Both fabs need the same ebisBox and region.

Referenced by negate().

◆ plus() [1/3]

MFCellFAB& MFCellFAB::plus ( const MFCellFAB a_ebfab,
int  a_srccomp,
int  a_destcomp,
int  a_numcomp 
)

Both fabs need the same ebisBox and region.

Referenced by negate().

◆ plus() [2/3]

MFCellFAB& MFCellFAB::plus ( const MFCellFAB a_src,
const Box a_srcbox,
const Box a_destbox,
const Real a_scale,
int  a_srccomp,
int  a_destcomp,
int  a_numcomp 
)

◆ operator-=() [1/2]

MFCellFAB& MFCellFAB::operator-= ( const MFCellFAB a_mffab)

Both fabs need the same ebisBox and region.

Referenced by negate().

◆ minus()

MFCellFAB& MFCellFAB::minus ( const MFCellFAB a_ebfab,
int  a_srccomp,
int  a_destcomp,
int  a_numcomp 
)

Both fabs need the same ebisBox and region.

Referenced by negate().

◆ operator*=() [1/2]

MFCellFAB& MFCellFAB::operator*= ( const MFCellFAB a_mffab)

Both fabs need the same ebisBox and region.

Referenced by negate().

◆ mult() [1/2]

MFCellFAB& MFCellFAB::mult ( const MFCellFAB a_ebfab,
int  a_srccomp,
int  a_destcomp,
int  a_numcomp 
)

Both fabs need the same ebisBox and region.

Referenced by negate().

◆ operator/=() [1/2]

MFCellFAB& MFCellFAB::operator/= ( const MFCellFAB a_mffab)

Both fabs need the same ebisBox and region.

Referenced by negate().

◆ divide()

MFCellFAB& MFCellFAB::divide ( const MFCellFAB a_ebfab,
int  a_srccomp,
int  a_destcomp,
int  a_numcomp 
)

Both fabs need the same ebisBox and region.

Referenced by negate().

◆ operator+=() [2/2]

MFCellFAB& MFCellFAB::operator+= ( const Real a_scalar)

Both fabs need the same ebisBox and region.

◆ operator-=() [2/2]

MFCellFAB& MFCellFAB::operator-= ( const Real a_scalar)

Both fabs need the same ebisBox and region.

◆ operator*=() [2/2]

MFCellFAB& MFCellFAB::operator*= ( const Real a_scalar)

Both fabs need the same ebisBox and region.

◆ mult() [2/2]

MFCellFAB& MFCellFAB::mult ( Real  a_scalar)

Both fabs need the same ebisBox and region.

◆ operator/=() [2/2]

MFCellFAB& MFCellFAB::operator/= ( const Real a_scalar)

Both fabs need the same ebisBox and region.

◆ plus() [3/3]

MFCellFAB& MFCellFAB::plus ( const MFCellFAB a_src,
Real  a_scalar 
)

Current FAB += a_src FAB * a_scalar. Both fabs need the same ebisBox and region.

◆ copy() [2/2]

MFCellFAB& MFCellFAB::copy ( const MFCellFAB a_src)

◆ norm() [1/2]

virtual Real MFCellFAB::norm ( int  a_power,
int  a_comp,
int  a_numComp 
) const
virtual

(Not implemented) Returns the Lp-norm of this MFCellFAB

(Not implemented) Returns the Lp-norm of this MFCellFAB using components (a_comp : a_comp + a_numcomp - 1). a_power < 0 -> ERROR. a_power = 0 -> infinity norm (max norm). a_power = 1 -> L1-norm a_power > 1 -> Lp-norm

Referenced by negate().

◆ norm() [2/2]

virtual Real MFCellFAB::norm ( const Box a_subbox,
int  a_power,
int  a_comp,
int  a_numComp 
) const
virtual

(Not implemented) Returns the Lp-norm of this MFCellFAB within a region

(Not implemented) Returns the Lp-norm of this MFCellFAB using components (a_comp : a_comp + a_numcomp - 1) and within the a_subbox. a_power < 0 -> ERROR. a_power = 0 -> infinity norm (max norm). a_power = 1 -> L1-norm a_power > 1 -> Lp-norm

◆ sumPow()

virtual Real MFCellFAB::sumPow ( const Box a_subbox,
int  a_power,
int  a_comp,
int  a_numComp 
) const
virtual

(Not implemented) Returns a sum of powers of a subset of this MFCellFAB

(Not implemented) Returns a sum of powers of a subset of this MFCellFAB, specifically components a_comp to a_comp+a_numcomp-1 within a_subbox. a_power >= 2 only.

Referenced by negate().

◆ dotProduct() [1/2]

Real MFCellFAB::dotProduct ( const MFCellFAB ebfab2) const

(Not implemented) Return the dot product of this MFCellFAB with another

(Not implemented) Return the dot product of this MFCellFAB and "ebfab2" over their overlap region and all components.

Referenced by negate().

◆ dotProduct() [2/2]

Real MFCellFAB::dotProduct ( const MFCellFAB ebfab2,
const Box a_box 
) const

◆ operator=()

void MFCellFAB::operator= ( const MFCellFAB rhs)
private

Referenced by negate().

Member Data Documentation

◆ m_phase

Vector<EBCellFAB*> MFCellFAB::m_phase
private

◆ m_box

Box MFCellFAB::m_box
private

Referenced by box().


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