Public Member Functions | |
ExodusWriter (const std::string &filename) | |
virtual | ~ExodusWriter () |
virtual void | write () const |
virtual RCP< FieldWriterBase > | getRcp () |
void | writeParallelInfo (const std::string &filename) const |
Private Member Functions | |
void | getCharpp (const Array< std::string > &s, Array< const char * > &p) const |
void | findNodeSets (Array< CellFilter > &nodesetFilters, Array< int > &omnipresentFuncs, Array< RCP< Array< int > > > &funcsForNodeset, Array< RCP< Array< int > > > &nodesForNodeset, Array< int > &nsID, Array< int > &nNodesPerSet, Array< int > &nsNodePtr, RCP< Array< int > > allNodes) const |
void | findBlocks (Array< CellFilter > &blockFilters, Array< int > &omnipresentFuncs, Array< RCP< Array< int > > > &funcsForBlock, Array< RCP< Array< int > > > &elemsForBlock, Array< int > &elemIDs, Array< int > &nElemsPerBlock, Array< int > &blockElemPtr, RCP< Array< int > > allElems) const |
void | offset (Array< int > &x) const |
std::string | elemType (const CellType &type) const |
void | writeMesh (int exoID, const Array< CellFilter > &nodesetFilters, const Array< int > &nsID, const Array< int > &nNodesPerSet, const Array< int > &nsNodePtr, const RCP< Array< int > > &allNodes) const |
void | writeFields (int exoID, const Array< CellFilter > &nodesetFilters, const Array< int > &omnipresentNodalFuncs, const Array< int > &omnipresentElemFuncs, const Array< RCP< Array< int > > > &funcsForNodeset, const Array< RCP< Array< int > > > &nodesForNodeset, const Array< int > &nsID) const |
Definition at line 44 of file SundanceExodusWriter.hpp.
Sundance::ExodusWriter::ExodusWriter | ( | const std::string & | filename | ) | [inline] |
Definition at line 48 of file SundanceExodusWriter.hpp.
virtual Sundance::ExodusWriter::~ExodusWriter | ( | ) | [inline, virtual] |
virtual dtor
Definition at line 52 of file SundanceExodusWriter.hpp.
std::string ExodusWriter::elemType | ( | const CellType & | type | ) | const [private] |
Definition at line 516 of file SundanceExodusWriter.cpp.
References Sundance::TetCell, and Sundance::TriangleCell.
Referenced by writeMesh().
void ExodusWriter::findBlocks | ( | Array< CellFilter > & | blockFilters, | |
Array< int > & | omnipresentFuncs, | |||
Array< RCP< Array< int > > > & | funcsForBlock, | |||
Array< RCP< Array< int > > > & | elemsForBlock, | |||
Array< int > & | elemIDs, | |||
Array< int > & | nElemsPerBlock, | |||
Array< int > & | blockElemPtr, | |||
RCP< Array< int > > | allElems | |||
) | const [private] |
Definition at line 657 of file SundanceExodusWriter.cpp.
References Sundance::FieldWriterBase::cellScalarFields(), Sundance::cellSetToLIDArray(), Sundance::Map< Key, Value, Compare >::containsKey(), Sundance::CellFilter::getCells(), Sundance::FieldWriterBase::mesh(), Sundance::Map< Key, Value, Compare >::put(), SUNDANCE_MSG2, and Playa::ObjectWithVerbosity::verb().
Referenced by write().
void ExodusWriter::findNodeSets | ( | Array< CellFilter > & | nodesetFilters, | |
Array< int > & | omnipresentFuncs, | |||
Array< RCP< Array< int > > > & | funcsForNodeset, | |||
Array< RCP< Array< int > > > & | nodesForNodeset, | |||
Array< int > & | nsID, | |||
Array< int > & | nNodesPerSet, | |||
Array< int > & | nsNodePtr, | |||
RCP< Array< int > > | allNodes | |||
) | const [private] |
Definition at line 567 of file SundanceExodusWriter.cpp.
References Sundance::cellSetToLIDArray(), Sundance::connectedNodeSet(), Sundance::Map< Key, Value, Compare >::containsKey(), Sundance::FieldWriterBase::mesh(), Sundance::FieldWriterBase::pointScalarFields(), Sundance::Map< Key, Value, Compare >::put(), SUNDANCE_MSG2, SUNDANCE_MSG4, and Playa::ObjectWithVerbosity::verb().
Referenced by write().
void ExodusWriter::getCharpp | ( | const Array< std::string > & | s, | |
Array< const char * > & | p | |||
) | const [private] |
Definition at line 744 of file SundanceExodusWriter.cpp.
Referenced by writeFields(), and writeMesh().
virtual RCP<FieldWriterBase> Sundance::ExodusWriter::getRcp | ( | ) | [inline, virtual] |
Return a ref count pointer to self
Implements Playa::Handleable< FieldWriterBase >.
Definition at line 58 of file SundanceExodusWriter.hpp.
void ExodusWriter::offset | ( | Array< int > & | x | ) | const [private] |
void ExodusWriter::write | ( | ) | const [virtual] |
Implements Sundance::FieldWriterBase.
Definition at line 50 of file SundanceExodusWriter.cpp.
References Sundance::FieldWriterBase::filename(), findBlocks(), findNodeSets(), Sundance::FieldWriterBase::myRank(), Sundance::FieldWriterBase::nProc(), Sundance::toString(), writeFields(), writeMesh(), and writeParallelInfo().
void ExodusWriter::writeFields | ( | int | exoID, | |
const Array< CellFilter > & | nodesetFilters, | |||
const Array< int > & | omnipresentNodalFuncs, | |||
const Array< int > & | omnipresentElemFuncs, | |||
const Array< RCP< Array< int > > > & | funcsForNodeset, | |||
const Array< RCP< Array< int > > > & | nodesForNodeset, | |||
const Array< int > & | nsID | |||
) | const [private] |
Definition at line 320 of file SundanceExodusWriter.cpp.
References Sundance::FieldWriterBase::cellScalarFields(), Sundance::FieldWriterBase::cellScalarNames(), Sundance::Map< Key, Value, Compare >::containsKey(), Sundance::Set< Key, Compare >::elements(), Sundance::Map< Key, Value, Compare >::get(), getCharpp(), Sundance::FieldWriterBase::mesh(), Sundance::Mesh::numCells(), PLAYA_ROOT_MSG1, PLAYA_ROOT_MSG2, Sundance::FieldWriterBase::pointScalarFields(), Sundance::FieldWriterBase::pointScalarNames(), Sundance::Map< Key, Value, Compare >::put(), Sundance::Set< Key, Compare >::put(), Sundance::Mesh::spatialDim(), and Playa::ObjectWithVerbosity::verb().
Referenced by write().
void ExodusWriter::writeMesh | ( | int | exoID, | |
const Array< CellFilter > & | nodesetFilters, | |||
const Array< int > & | nsID, | |||
const Array< int > & | nNodesPerSet, | |||
const Array< int > & | nsNodePtr, | |||
const RCP< Array< int > > & | allNodes | |||
) | const [private] |
Definition at line 119 of file SundanceExodusWriter.cpp.
References Sundance::Set< Key, Compare >::elements(), elemType(), Sundance::FieldWriterBase::filename(), Sundance::Mesh::getAllLabelsForDimension(), getCharpp(), Sundance::Mesh::getFacetLIDs(), Sundance::Mesh::getLIDsForLabel(), Sundance::Mesh::getMaxCofacetLIDs(), Sundance::MaximalCofacetBatch::getSpecifiedCofacets(), Sundance::FieldWriterBase::mesh(), Sundance::Mesh::nodePosition(), Sundance::Mesh::numCells(), Sundance::Mesh::numLabels(), offset(), sort(), Sundance::Mesh::spatialDim(), and Sundance::ufcFacetIndexToExFacetIndex().
Referenced by write().
void ExodusWriter::writeParallelInfo | ( | const std::string & | filename | ) | const |
Definition at line 533 of file SundanceExodusWriter.cpp.
References Sundance::FieldWriterBase::comments(), Sundance::Mesh::mapLIDToGID(), Sundance::FieldWriterBase::mesh(), Sundance::FieldWriterBase::myRank(), Sundance::FieldWriterBase::nProc(), Sundance::Mesh::numCells(), Sundance::Mesh::ownerProcID(), and Sundance::Mesh::spatialDim().
Referenced by write().