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 61 of file SundanceRivaraMesh.hpp.
| RivaraMesh::RivaraMesh | ( | int | dim, |
| const MPIComm & | comm | ||
| ) |
Definition at line 69 of file SundanceRivaraMesh.cpp.
| void RivaraMesh::addElement | ( | const RCP< Element > & | tri | ) |
Definition at line 106 of file SundanceRivaraMesh.cpp.
References elements_.
| int RivaraMesh::addElement | ( | int | globalIndex, |
| const Array< int > & | vertexGIDs, | ||
| int | ownerProc, | ||
| int | label | ||
| ) |
Definition at line 112 of file SundanceRivaraMesh.cpp.
| int RivaraMesh::addNode | ( | const RCP< Node > & | node | ) |
Definition at line 87 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 | ||
| ) |
Definition at line 98 of file SundanceRivaraMesh.cpp.
| RCP<Element> Sundance::Rivara::RivaraMesh::element | ( | int | i | ) | const [inline] |
Definition at line 101 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 202 of file SundanceRivaraMesh.cpp.
References faces_, faceToLIDMap_, and Sundance::Map< Key, Value, Compare >::get().
Referenced by Sundance::Rivara::Element::refine().
| int& Sundance::Rivara::RivaraMesh::nextGID | ( | ) | [inline] |
Definition at line 109 of file SundanceRivaraMesh.hpp.
References nextGID_.
Referenced by addNode(), and Sundance::Rivara::Edge::bisect().
| int Sundance::Rivara::RivaraMesh::nextGID | ( | ) | const [inline] |
Definition at line 111 of file SundanceRivaraMesh.hpp.
References nextGID_.
| const RCP<Node>& Sundance::Rivara::RivaraMesh::node | ( | int | i | ) | const [inline] |
| int RivaraMesh::numElements | ( | ) | const |
Definition at line 213 of file SundanceRivaraMesh.cpp.
References elements_.
| int Sundance::Rivara::RivaraMesh::numNodes | ( | ) | const [inline] |
Definition at line 87 of file SundanceRivaraMesh.hpp.
References nodes_.
| int Sundance::Rivara::RivaraMesh::numRootElements | ( | ) | const [inline] |
Definition at line 103 of file SundanceRivaraMesh.hpp.
References elements_.
| void RivaraMesh::refine | ( | ) |
Definition at line 74 of file SundanceRivaraMesh.cpp.
References Sundance::Rivara::Element::refine(), refinementAreas(), refinementSet(), and refKernelTimer().
| std::stack<double>& Sundance::Rivara::RivaraMesh::refinementAreas | ( | ) | [inline] |
Definition at line 92 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 89 of file SundanceRivaraMesh.hpp.
References refinementSet_.
Referenced by refine(), and Sundance::Rivara::Element::refine().
| int RivaraMesh::spatialDim | ( | ) | const |
Definition at line 223 of file SundanceRivaraMesh.cpp.
References spatialDim_.
| RCP< Edge > RivaraMesh::tryEdge | ( | const RCP< Node > & | a, |
| const RCP< Node > & | b, | ||
| int & | edgeSign | ||
| ) |
Definition at line 146 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 177 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 99 of file SundanceRivaraMesh.hpp.
Array<RCP<Edge> > Sundance::Rivara::RivaraMesh::edges_ [private] |
Definition at line 120 of file SundanceRivaraMesh.hpp.
Referenced by tryEdge().
Array<RCP<Element> > Sundance::Rivara::RivaraMesh::elements_ [private] |
Definition at line 124 of file SundanceRivaraMesh.hpp.
Referenced by addElement(), element(), numElements(), and numRootElements().
Array<RCP<Face> > Sundance::Rivara::RivaraMesh::faces_ [private] |
Definition at line 122 of file SundanceRivaraMesh.hpp.
Map<FaceNodes, int> Sundance::Rivara::RivaraMesh::faceToLIDMap_ [private] |
Definition at line 128 of file SundanceRivaraMesh.hpp.
int Sundance::Rivara::RivaraMesh::nextGID_ [private] |
Definition at line 116 of file SundanceRivaraMesh.hpp.
Referenced by nextGID().
Array<RCP<Node> > Sundance::Rivara::RivaraMesh::nodes_ [private] |
Definition at line 118 of file SundanceRivaraMesh.hpp.
Referenced by addElement(), addNode(), node(), and numNodes().
Array<Map<int, int> > Sundance::Rivara::RivaraMesh::nodeToEdgeMap_ [private] |
Definition at line 126 of file SundanceRivaraMesh.hpp.
std::stack<double> Sundance::Rivara::RivaraMesh::refinementAreas_ [private] |
Definition at line 132 of file SundanceRivaraMesh.hpp.
Referenced by refinementAreas().
std::stack<Element*> Sundance::Rivara::RivaraMesh::refinementSet_ [private] |
Definition at line 130 of file SundanceRivaraMesh.hpp.
Referenced by refinementSet().
int Sundance::Rivara::RivaraMesh::spatialDim_ [private] |
Definition at line 114 of file SundanceRivaraMesh.hpp.
Referenced by spatialDim().