Sundance::StdFwkEvalMediator Class Reference

Inheritance diagram for Sundance::StdFwkEvalMediator:

Sundance::AbstractEvalMediator Playa::Printable Sundance::CurveEvalMediator Sundance::QuadratureEvalMediator

List of all members.

Public Member Functions

 StdFwkEvalMediator (const Mesh &mesh, int cellDim)
virtual ~StdFwkEvalMediator ()
void setCellBatch (const RCP< const Array< int > > &cellLID)
void setIntegrationSpec (IntegrationCellSpecifier intCellSpec)
virtual void setCellType (const CellType &cellType, const CellType &maxCellType, bool isInternalBdry)
const CellJacobianBatchJVol () const
const CellJacobianBatchJTrans () const
const Array< int > & facetIndices () const
const Array< int > & maxCellLIDs () const
int cellDim () const
int maxCellDim () const
const CellTypecellType () const
const CellTypemaxCellType () const
const RCP< const Array< int > > & cellLID () const
const RCP< Array< int > > & cofacetCellLID () const
IntegrationCellSpecifier integrationCellSpec () const
bool cofacetCellsAreReady () const
bool isInternalBdry () const
bool forbidCofacetIntegrations () const

Protected Member Functions

const Meshmesh () const
Meshmesh ()
bool & cacheIsValid () const
void setupFacetTransformations () const
Map< const
DiscreteFunctionData *, RCP
< Array< Array< double > > > > & 
fCache () const
Map< const
DiscreteFunctionData *, RCP
< Array< Array< double > > > > & 
dfCache () const
Map< const
DiscreteFunctionData *, RCP
< Array< Array< double > > > > & 
localValueCache () const
Map< const
DiscreteFunctionData *, RCP
< const MapStructure > > & 
mapStructCache () const
Map< const
DiscreteFunctionData *, bool > & 
fCacheIsValid () const
Map< const
DiscreteFunctionData *, bool > & 
dfCacheIsValid () const
Map< const
DiscreteFunctionData *, bool > & 
localValueCacheIsValid () const

Private Attributes

Mesh mesh_
int cellDim_
CellType cellType_
CellType maxCellType_
bool isInternalBdry_
bool forbidCofacetIntegrations_
RCP< const Array< int > > cellLID_
IntegrationCellSpecifier intCellSpec_
RCP< CellJacobianBatchJVol_
RCP< CellJacobianBatchJTrans_
RCP< Array< int > > facetIndices_
RCP< Array< int > > maxCellLIDs_
bool cofacetCellsAreReady_
bool cacheIsValid_
bool jCacheIsValid_
Map< const
DiscreteFunctionData *, RCP
< Array< Array< double > > > > 
fCache_
Map< const
DiscreteFunctionData *, RCP
< Array< Array< double > > > > 
dfCache_
Map< const
DiscreteFunctionData *, RCP
< Array< Array< double > > > > 
localValueCache_
Map< const
DiscreteFunctionData *, RCP
< const MapStructure > > 
mapStructCache_
Map< const
DiscreteFunctionData *, bool > 
fCacheIsValid_
Map< const
DiscreteFunctionData *, bool > 
dfCacheIsValid_
Map< const
DiscreteFunctionData *, bool > 
localValueCacheIsValid_


Detailed Description

StdFwkEvalMediator evaluates mesh-dependent functions in the standard framework. A number of subtypes are supported: QuadratureEvalMediator, which does evaluation on quadrature points, and NodalEvalMediator, which does evaluation at nodal points.

Definition at line 53 of file SundanceStdFwkEvalMediator.hpp.


Constructor & Destructor Documentation

StdFwkEvalMediator::StdFwkEvalMediator ( const Mesh mesh,
int  cellDim 
)

Definition at line 51 of file SundanceStdFwkEvalMediator.cpp.

virtual Sundance::StdFwkEvalMediator::~StdFwkEvalMediator (  )  [inline, virtual]

Definition at line 61 of file SundanceStdFwkEvalMediator.hpp.


Member Function Documentation

bool& Sundance::StdFwkEvalMediator::cacheIsValid (  )  const [inline, protected]

Definition at line 131 of file SundanceStdFwkEvalMediator.hpp.

References cacheIsValid_.

Referenced by setCellBatch(), and setCellType().

int Sundance::StdFwkEvalMediator::cellDim (  )  const [inline]

const RCP<const Array<int> >& Sundance::StdFwkEvalMediator::cellLID (  )  const [inline]

const CellType& Sundance::StdFwkEvalMediator::cellType (  )  const [inline]

const RCP<Array<int> >& Sundance::StdFwkEvalMediator::cofacetCellLID (  )  const [inline]

Definition at line 110 of file SundanceStdFwkEvalMediator.hpp.

References maxCellLIDs_.

bool Sundance::StdFwkEvalMediator::cofacetCellsAreReady (  )  const [inline]

Definition at line 116 of file SundanceStdFwkEvalMediator.hpp.

References cofacetCellsAreReady_.

Map<const DiscreteFunctionData*, RCP<Array<Array<double> > > >& Sundance::StdFwkEvalMediator::dfCache (  )  const [inline, protected]

Definition at line 139 of file SundanceStdFwkEvalMediator.hpp.

References dfCache_.

Map<const DiscreteFunctionData*, bool>& Sundance::StdFwkEvalMediator::dfCacheIsValid (  )  const [inline, protected]

Definition at line 150 of file SundanceStdFwkEvalMediator.hpp.

References dfCacheIsValid_.

const Array<int>& Sundance::StdFwkEvalMediator::facetIndices (  )  const [inline]

When evaluating derivatives on boundaries, we evaluate basis functions on the maximal cofacets of the boundary cells. This function returns the facet index, relative to the maximal cofacet, of each boundary cell in the batch.

Definition at line 89 of file SundanceStdFwkEvalMediator.hpp.

References facetIndices_.

Map<const DiscreteFunctionData*, RCP<Array<Array<double> > > >& Sundance::StdFwkEvalMediator::fCache (  )  const [inline, protected]

Definition at line 137 of file SundanceStdFwkEvalMediator.hpp.

References fCache_.

Map<const DiscreteFunctionData*, bool>& Sundance::StdFwkEvalMediator::fCacheIsValid (  )  const [inline, protected]

Definition at line 148 of file SundanceStdFwkEvalMediator.hpp.

References fCacheIsValid_.

bool Sundance::StdFwkEvalMediator::forbidCofacetIntegrations (  )  const [inline]

IntegrationCellSpecifier Sundance::StdFwkEvalMediator::integrationCellSpec (  )  const [inline]

Definition at line 113 of file SundanceStdFwkEvalMediator.hpp.

References intCellSpec_.

Referenced by Sundance::CurveEvalMediator::setCellType().

bool Sundance::StdFwkEvalMediator::isInternalBdry (  )  const [inline]

Definition at line 119 of file SundanceStdFwkEvalMediator.hpp.

References isInternalBdry_.

Referenced by Sundance::CurveEvalMediator::setCellType().

const CellJacobianBatch & StdFwkEvalMediator::JTrans (  )  const

Return the Jacobian to be used in derivative transformations.

Definition at line 164 of file SundanceStdFwkEvalMediator.cpp.

References intCellSpec_, JTrans_, JVol_, and Sundance::NoTermsNeedCofacets.

const CellJacobianBatch& Sundance::StdFwkEvalMediator::JVol (  )  const [inline]

Return the Jacobian to be used in computing the volume of cells being integrated. This will not necessarily be the same as the Jacobian used for transformations of vectors: when integrating derivatives over boundaries, the volume is the volume of the facet, while the transformations are computed on the maximal cofacets.

Definition at line 80 of file SundanceStdFwkEvalMediator.hpp.

References JVol_.

Map<const DiscreteFunctionData*, RCP<Array<Array<double> > > >& Sundance::StdFwkEvalMediator::localValueCache (  )  const [inline, protected]

Definition at line 141 of file SundanceStdFwkEvalMediator.hpp.

References localValueCache_.

Map<const DiscreteFunctionData*, bool>& Sundance::StdFwkEvalMediator::localValueCacheIsValid (  )  const [inline, protected]

Definition at line 152 of file SundanceStdFwkEvalMediator.hpp.

References localValueCacheIsValid_.

Map<const DiscreteFunctionData*, RCP<const MapStructure> >& Sundance::StdFwkEvalMediator::mapStructCache (  )  const [inline, protected]

Definition at line 144 of file SundanceStdFwkEvalMediator.hpp.

References mapStructCache_.

int Sundance::StdFwkEvalMediator::maxCellDim (  )  const [inline]

Definition at line 98 of file SundanceStdFwkEvalMediator.hpp.

References mesh_, and Sundance::Mesh::spatialDim().

const Array<int>& Sundance::StdFwkEvalMediator::maxCellLIDs (  )  const [inline]

Definition at line 92 of file SundanceStdFwkEvalMediator.hpp.

References maxCellLIDs_.

const CellType& Sundance::StdFwkEvalMediator::maxCellType (  )  const [inline]

Definition at line 104 of file SundanceStdFwkEvalMediator.hpp.

References maxCellType_.

Mesh& Sundance::StdFwkEvalMediator::mesh (  )  [inline, protected]

Definition at line 129 of file SundanceStdFwkEvalMediator.hpp.

References mesh_.

const Mesh& Sundance::StdFwkEvalMediator::mesh (  )  const [inline, protected]

void StdFwkEvalMediator::setCellBatch ( const RCP< const Array< int > > &  cellLID  ) 

void StdFwkEvalMediator::setCellType ( const CellType cellType,
const CellType maxCellType,
bool  isInternalBdry 
) [virtual]

void StdFwkEvalMediator::setIntegrationSpec ( IntegrationCellSpecifier  intCellSpec  ) 

Definition at line 92 of file SundanceStdFwkEvalMediator.cpp.

References intCellSpec_.

void StdFwkEvalMediator::setupFacetTransformations (  )  const [protected]


Member Data Documentation

Definition at line 181 of file SundanceStdFwkEvalMediator.hpp.

Referenced by cacheIsValid().

Definition at line 157 of file SundanceStdFwkEvalMediator.hpp.

Referenced by cellDim(), and setCellType().

RCP<const Array<int> > Sundance::StdFwkEvalMediator::cellLID_ [private]

Definition at line 159 of file SundanceStdFwkEvalMediator.hpp.

Referenced by cellType(), and setCellType().

Map<const DiscreteFunctionData*, RCP<Array<Array<double> > > > Sundance::StdFwkEvalMediator::dfCache_ [mutable, private]

Definition at line 190 of file SundanceStdFwkEvalMediator.hpp.

Referenced by dfCache().

Definition at line 199 of file SundanceStdFwkEvalMediator.hpp.

Referenced by dfCacheIsValid(), and setCellBatch().

RCP<Array<int> > Sundance::StdFwkEvalMediator::facetIndices_ [mutable, private]

Definition at line 175 of file SundanceStdFwkEvalMediator.hpp.

Referenced by facetIndices(), and setupFacetTransformations().

Map<const DiscreteFunctionData*, RCP<Array<Array<double> > > > Sundance::StdFwkEvalMediator::fCache_ [mutable, private]

Definition at line 188 of file SundanceStdFwkEvalMediator.hpp.

Referenced by fCache().

Definition at line 197 of file SundanceStdFwkEvalMediator.hpp.

Referenced by fCacheIsValid(), and setCellBatch().

Definition at line 165 of file SundanceStdFwkEvalMediator.hpp.

Referenced by forbidCofacetIntegrations(), and setCellType().

Definition at line 163 of file SundanceStdFwkEvalMediator.hpp.

Referenced by isInternalBdry(), and setCellType().

Definition at line 183 of file SundanceStdFwkEvalMediator.hpp.

Referenced by setCellBatch(), and setCellType().

Definition at line 173 of file SundanceStdFwkEvalMediator.hpp.

Referenced by JTrans(), and setupFacetTransformations().

Definition at line 171 of file SundanceStdFwkEvalMediator.hpp.

Referenced by JTrans(), JVol(), and setCellBatch().

Map<const DiscreteFunctionData*, RCP<Array<Array<double> > > > Sundance::StdFwkEvalMediator::localValueCache_ [mutable, private]

Definition at line 192 of file SundanceStdFwkEvalMediator.hpp.

Referenced by localValueCache().

Definition at line 201 of file SundanceStdFwkEvalMediator.hpp.

Referenced by localValueCacheIsValid(), and setCellBatch().

Definition at line 194 of file SundanceStdFwkEvalMediator.hpp.

Referenced by mapStructCache().

RCP<Array<int> > Sundance::StdFwkEvalMediator::maxCellLIDs_ [mutable, private]

Reimplemented in Sundance::CurveEvalMediator.

Definition at line 161 of file SundanceStdFwkEvalMediator.hpp.

Referenced by maxCellType(), and setCellType().

Site Contact