Sundance::LocalDOFMap Class Reference

List of all members.

Public Member Functions

 LocalDOFMap (int numBlocks, int verb)
void setCells (int cellDim, int maxCellDim, const RCP< const Array< int > > &cellLID)
int nCells () const
bool isUsed (int b) const
bool isUnused (int b) const
bool isUnused () const
void markAsUnused ()
bool hasCells () const
const RCP< const Array< int > > & cellLIDs () const
void markAsUsed (int b)
int numBlocks () const
const Array< int > & nLocalNodesPerChunk (int b) const
const RCP< const MapStructure > & mapStruct (int b) const
const Array< Array< int > > & localDOFs (int b) const
std::ostream & print (std::ostream &os) const
void fillBlock (int b, const RCP< DOFMapBase > &globalMap, const Array< Set< int > > &requiredFunc)
void setVerb (int v) const

Private Member Functions

Array< int > & nLocalNodesPerChunk (int b)
RCP< const MapStructure > & mapStruct (int b)
Array< Array< int > > & localDOFs (int b)
void verifyValidBlock (int b) const

Private Attributes

int verb_
Array< int > isUsed_
bool hasCells_
RCP< Array< Array< int > > > nLocalNodesPerChunk_
RCP< Array< RCP< const
MapStructure > > > 
mapStruct_
RCP< Array< Array< Array< int > > > > localDOFs_
RCP< const Array< int > > cellLID_
int activeCellDim_
int maxCellDim_

Related Functions

(Note that these are not member functions.)

std::ostream & operator<< (std::ostream &os, const LocalDOFMap &m)


Detailed Description

LocalDOFMap bundles several compact tables used for fast lookup of local DOFs.

Definition at line 47 of file SundanceLocalDOFMap.hpp.


Constructor & Destructor Documentation

LocalDOFMap::LocalDOFMap ( int  numBlocks,
int  verb 
)

Definition at line 47 of file SundanceLocalDOFMap.cpp.


Member Function Documentation

const RCP<const Array<int> >& Sundance::LocalDOFMap::cellLIDs (  )  const [inline]

Definition at line 76 of file SundanceLocalDOFMap.hpp.

References cellLID_.

void LocalDOFMap::fillBlock ( int  b,
const RCP< DOFMapBase > &  globalMap,
const Array< Set< int > > &  requiredFunc 
)

bool Sundance::LocalDOFMap::hasCells (  )  const [inline]

Definition at line 73 of file SundanceLocalDOFMap.hpp.

References hasCells_.

Referenced by nCells().

bool LocalDOFMap::isUnused (  )  const

Definition at line 76 of file SundanceLocalDOFMap.cpp.

References isUsed_, and numBlocks().

bool Sundance::LocalDOFMap::isUnused ( int  b  )  const [inline]

Definition at line 64 of file SundanceLocalDOFMap.hpp.

References isUsed().

bool Sundance::LocalDOFMap::isUsed ( int  b  )  const [inline]

Definition at line 61 of file SundanceLocalDOFMap.hpp.

References isUsed_.

Referenced by isUnused(), and print().

Array<Array<int> >& Sundance::LocalDOFMap::localDOFs ( int  b  )  [inline, private]

Definition at line 118 of file SundanceLocalDOFMap.hpp.

References localDOFs_.

const Array<Array<int> >& Sundance::LocalDOFMap::localDOFs ( int  b  )  const [inline]

Definition at line 93 of file SundanceLocalDOFMap.hpp.

References localDOFs_.

Referenced by fillBlock(), and print().

RCP<const MapStructure>& Sundance::LocalDOFMap::mapStruct ( int  b  )  [inline, private]

Definition at line 114 of file SundanceLocalDOFMap.hpp.

References mapStruct_.

const RCP<const MapStructure>& Sundance::LocalDOFMap::mapStruct ( int  b  )  const [inline]

Definition at line 89 of file SundanceLocalDOFMap.hpp.

References mapStruct_.

Referenced by fillBlock(), and print().

void LocalDOFMap::markAsUnused (  ) 

Definition at line 66 of file SundanceLocalDOFMap.cpp.

References hasCells_, isUsed_, and numBlocks().

void Sundance::LocalDOFMap::markAsUsed ( int  b  )  [inline]

Definition at line 79 of file SundanceLocalDOFMap.hpp.

References isUsed_.

int LocalDOFMap::nCells (  )  const

Definition at line 59 of file SundanceLocalDOFMap.cpp.

References cellLID_, and hasCells().

Array<int>& Sundance::LocalDOFMap::nLocalNodesPerChunk ( int  b  )  [inline, private]

Definition at line 110 of file SundanceLocalDOFMap.hpp.

References nLocalNodesPerChunk_.

const Array<int>& Sundance::LocalDOFMap::nLocalNodesPerChunk ( int  b  )  const [inline]

Definition at line 85 of file SundanceLocalDOFMap.hpp.

References nLocalNodesPerChunk_.

Referenced by fillBlock(), and print().

int Sundance::LocalDOFMap::numBlocks (  )  const [inline]

Definition at line 82 of file SundanceLocalDOFMap.hpp.

References mapStruct_.

Referenced by isUnused(), markAsUnused(), print(), and verifyValidBlock().

std::ostream & LocalDOFMap::print ( std::ostream &  os  )  const

void LocalDOFMap::setCells ( int  cellDim,
int  maxCellDim,
const RCP< const Array< int > > &  cellLID 
)

Definition at line 91 of file SundanceLocalDOFMap.cpp.

References activeCellDim_, cellLID_, hasCells_, and maxCellDim_.

void Sundance::LocalDOFMap::setVerb ( int  v  )  const [inline]

Definition at line 104 of file SundanceLocalDOFMap.hpp.

References verb_.

void LocalDOFMap::verifyValidBlock ( int  b  )  const [private]

Definition at line 85 of file SundanceLocalDOFMap.cpp.

References numBlocks().

Referenced by fillBlock().


Friends And Related Function Documentation

std::ostream & operator<< ( std::ostream &  os,
const LocalDOFMap m 
) [related]

Definition at line 138 of file SundanceLocalDOFMap.hpp.

References print().


Member Data Documentation

Definition at line 132 of file SundanceLocalDOFMap.hpp.

Referenced by fillBlock(), print(), and setCells().

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

Definition at line 131 of file SundanceLocalDOFMap.hpp.

Referenced by cellLIDs(), fillBlock(), nCells(), print(), and setCells().

Definition at line 127 of file SundanceLocalDOFMap.hpp.

Referenced by hasCells(), markAsUnused(), and setCells().

Array<int> Sundance::LocalDOFMap::isUsed_ [private]

Definition at line 126 of file SundanceLocalDOFMap.hpp.

Referenced by isUnused(), isUsed(), markAsUnused(), and markAsUsed().

RCP<Array<Array<Array<int> > > > Sundance::LocalDOFMap::localDOFs_ [private]

Definition at line 130 of file SundanceLocalDOFMap.hpp.

Referenced by localDOFs().

RCP<Array<RCP<const MapStructure> > > Sundance::LocalDOFMap::mapStruct_ [private]

Definition at line 129 of file SundanceLocalDOFMap.hpp.

Referenced by mapStruct(), and numBlocks().

Definition at line 133 of file SundanceLocalDOFMap.hpp.

Referenced by print(), and setCells().

RCP<Array<Array<int> > > Sundance::LocalDOFMap::nLocalNodesPerChunk_ [private]

Definition at line 128 of file SundanceLocalDOFMap.hpp.

Referenced by nLocalNodesPerChunk().

int Sundance::LocalDOFMap::verb_ [mutable, private]

Definition at line 125 of file SundanceLocalDOFMap.hpp.

Referenced by fillBlock(), and setVerb().

Site Contact