Public Member Functions | |
RivaraMesh (int dim, const MPIComm &comm) | |
int | addNode (const RCP< Node > &node) |
int | addVertex (int globalIndex, const Point &x, int ownerProcID, int label) |
void | addElement (const RCP< Element > &tri) |
int | addElement (int globalIndex, const Array< int > &vertexGIDs, int ownerProc, int label) |
RCP< Edge > | tryEdge (const RCP< Node > &a, const RCP< Node > &b, int &edgeSign) |
RCP< Face > | tryFace (const RCP< Node > &a, const RCP< Node > &b, const RCP< Node > &c) |
const RCP< Face > & | getFace (const RCP< Node > &a, const RCP< Node > &b, const RCP< Node > &c) const |
const RCP< Node > & | node (int i) const |
int | numNodes () const |
std::stack< Element * > & | refinementSet () |
std::stack< double > & | refinementAreas () |
void | refine () |
ElementIterator | iterator () const |
RCP< Element > | element (int i) const |
int | numRootElements () const |
int | numElements () const |
int | spatialDim () const |
int & | nextGID () |
int | nextGID () const |
Private Attributes | |
int | spatialDim_ |
int | nextGID_ |
Array< RCP< Node > > | nodes_ |
Array< RCP< Edge > > | edges_ |
Array< RCP< Face > > | faces_ |
Array< RCP< Element > > | elements_ |
Array< Map< int, int > > | nodeToEdgeMap_ |
Map< FaceNodes, int > | faceToLIDMap_ |
std::stack< Element * > | refinementSet_ |
std::stack< double > | refinementAreas_ |
Friends | |
class | ElementIterator |
Definition at line 19 of file SundanceRivaraMesh.hpp.
RivaraMesh::RivaraMesh | ( | int | dim, | |
const MPIComm & | comm | |||
) |
Definition at line 27 of file SundanceRivaraMesh.cpp.
int RivaraMesh::addElement | ( | int | globalIndex, | |
const Array< int > & | vertexGIDs, | |||
int | ownerProc, | |||
int | label | |||
) |
void RivaraMesh::addElement | ( | const RCP< Element > & | tri | ) |
int RivaraMesh::addNode | ( | const RCP< Node > & | node | ) |
Definition at line 45 of file SundanceRivaraMesh.cpp.
References nextGID(), nodes_, and nodeToEdgeMap_.
Referenced by addVertex(), and Sundance::Rivara::Edge::bisect().
int RivaraMesh::addVertex | ( | int | globalIndex, | |
const Point & | x, | |||
int | ownerProcID, | |||
int | label | |||
) |
RCP<Element> Sundance::Rivara::RivaraMesh::element | ( | int | i | ) | const [inline] |
Definition at line 59 of file SundanceRivaraMesh.hpp.
References elements_.
Referenced by Sundance::Rivara::ElementIterator::getNextElement().
const RCP< Face > & RivaraMesh::getFace | ( | const RCP< Node > & | a, | |
const RCP< Node > & | b, | |||
const RCP< Node > & | c | |||
) | const |
Definition at line 160 of file SundanceRivaraMesh.cpp.
References faces_, faceToLIDMap_, and Sundance::Map< Key, Value, Compare >::get().
Referenced by Sundance::Rivara::Element::refine().
ElementIterator Sundance::Rivara::RivaraMesh::iterator | ( | ) | const |
int Sundance::Rivara::RivaraMesh::nextGID | ( | ) | const [inline] |
int& Sundance::Rivara::RivaraMesh::nextGID | ( | ) | [inline] |
Definition at line 67 of file SundanceRivaraMesh.hpp.
References nextGID_.
Referenced by addNode(), and Sundance::Rivara::Edge::bisect().
const RCP<Node>& Sundance::Rivara::RivaraMesh::node | ( | int | i | ) | const [inline] |
int RivaraMesh::numElements | ( | ) | const |
int Sundance::Rivara::RivaraMesh::numNodes | ( | ) | const [inline] |
int Sundance::Rivara::RivaraMesh::numRootElements | ( | ) | const [inline] |
void RivaraMesh::refine | ( | ) |
Definition at line 32 of file SundanceRivaraMesh.cpp.
References Sundance::Rivara::Element::refine(), refinementAreas(), refinementSet(), and refKernelTimer().
std::stack<double>& Sundance::Rivara::RivaraMesh::refinementAreas | ( | ) | [inline] |
Definition at line 50 of file SundanceRivaraMesh.hpp.
References refinementAreas_.
Referenced by refine(), and Sundance::Rivara::Element::refine().
std::stack<Element*>& Sundance::Rivara::RivaraMesh::refinementSet | ( | ) | [inline] |
Definition at line 47 of file SundanceRivaraMesh.hpp.
References refinementSet_.
Referenced by refine(), and Sundance::Rivara::Element::refine().
int RivaraMesh::spatialDim | ( | ) | const |
Definition at line 104 of file SundanceRivaraMesh.cpp.
References edges_, and nodeToEdgeMap_.
Referenced by Sundance::Rivara::Edge::bisect(), and Sundance::Rivara::Element::Element().
RCP< Face > RivaraMesh::tryFace | ( | const RCP< Node > & | a, | |
const RCP< Node > & | b, | |||
const RCP< Node > & | c | |||
) |
Definition at line 135 of file SundanceRivaraMesh.cpp.
References Sundance::Map< Key, Value, Compare >::containsKey(), faces_, faceToLIDMap_, and Sundance::Map< Key, Value, Compare >::put().
Referenced by Sundance::Rivara::Element::Element().
friend class ElementIterator [friend] |
Definition at line 57 of file SundanceRivaraMesh.hpp.
Array<RCP<Edge> > Sundance::Rivara::RivaraMesh::edges_ [private] |
Array<RCP<Element> > Sundance::Rivara::RivaraMesh::elements_ [private] |
Definition at line 82 of file SundanceRivaraMesh.hpp.
Referenced by addElement(), element(), numElements(), and numRootElements().
Array<RCP<Face> > Sundance::Rivara::RivaraMesh::faces_ [private] |
Map<FaceNodes, int> Sundance::Rivara::RivaraMesh::faceToLIDMap_ [private] |
int Sundance::Rivara::RivaraMesh::nextGID_ [private] |
Array<RCP<Node> > Sundance::Rivara::RivaraMesh::nodes_ [private] |
Definition at line 76 of file SundanceRivaraMesh.hpp.
Referenced by addElement(), addNode(), node(), and numNodes().
Array<Map<int, int> > Sundance::Rivara::RivaraMesh::nodeToEdgeMap_ [private] |
std::stack<double> Sundance::Rivara::RivaraMesh::refinementAreas_ [private] |
std::stack<Element*> Sundance::Rivara::RivaraMesh::refinementSet_ [private] |
int Sundance::Rivara::RivaraMesh::spatialDim_ [private] |