Public Member Functions | |
| UniformRefinementPair () | |
| UniformRefinementPair (const MeshType &meshType, const Mesh &coarse) | |
| const Mesh & | fine () const |
| const Mesh & | coarse () const |
| const Array< int > & | oldToNewVertMap () const |
| const Array< int > & | newVertToOldLIDMap () const |
| const Array< int > & | newVertIsOnEdge () const |
| const Array< int > & | oldEdgeToNewVertMap () const |
| const ArrayOfTuples< int > & | oldToNewElemMap () const |
| const Array< int > & | newToOldElemMap () const |
| const Array< Array< int > > & | oldEdgeChildren () const |
| const Array< Array< int > > & | oldEdgeParallels () const |
| const Array< int > & | newEdgeParents () const |
| const Array< int > & | newEdgeParallels () const |
| const ArrayOfTuples< int > & | interiorEdgesOfCoarseElems () const |
| int | check () const |
Protected Member Functions | |
| void | refineTriMesh () |
| int | lookupEdge (const Mesh &mesh, int v1, int v2) const |
Private Attributes | |
| MeshType | meshType_ |
| Mesh | coarse_ |
| Mesh | fine_ |
| Array< int > | oldToNewVertMap_ |
| Array< int > | newVertIsOnEdge_ |
| Array< int > | newVertToOldLIDMap_ |
| Array< int > | oldEdgeToNewVertMap_ |
| ArrayOfTuples< int > | oldToNewElemMap_ |
| Array< int > | newToOldElemMap_ |
| Array< Array< int > > | oldEdgeChildren_ |
| Array< Array< int > > | oldEdgeParallels_ |
| Array< int > | newEdgeParents_ |
| Array< int > | newEdgeParallels_ |
| ArrayOfTuples< int > | interiorEdges_ |
Definition at line 55 of file SundanceUniformRefinementPair.hpp.
Definition at line 54 of file SundanceUniformRefinementPair.cpp.
| Sundance::UniformRefinementPair::UniformRefinementPair | ( | const MeshType & | meshType, |
| const Mesh & | coarse | ||
| ) |
Definition at line 56 of file SundanceUniformRefinementPair.cpp.
References refineTriMesh(), and Sundance::Mesh::spatialDim().
| int Sundance::UniformRefinementPair::check | ( | ) | const |
Run a consistency check on the pair of meshes. Returns the number of errors detected.
Definition at line 257 of file SundanceUniformRefinementPair.cpp.
References Sundance::Mesh::centroid(), coarse_, Sundance::Point::distance(), Sundance::Mesh::facetLID(), fine_, Sundance::Mesh::getCofacets(), interiorEdges_, Sundance::Mesh::label(), newEdgeParallels(), newEdgeParents(), newToOldElemMap(), newToOldElemMap_, newVertIsOnEdge_, newVertToOldLIDMap(), Sundance::Mesh::numCells(), oldEdgeChildren(), oldEdgeParallels(), oldEdgeToNewVertMap(), oldToNewElemMap(), oldToNewVertMap(), and Sundance::ArrayOfTuples< T >::value().
| const Mesh& Sundance::UniformRefinementPair::coarse | ( | ) | const [inline] |
Definition at line 68 of file SundanceUniformRefinementPair.hpp.
References coarse_.
| const Mesh& Sundance::UniformRefinementPair::fine | ( | ) | const [inline] |
Definition at line 65 of file SundanceUniformRefinementPair.hpp.
References fine_.
| const ArrayOfTuples<int>& Sundance::UniformRefinementPair::interiorEdgesOfCoarseElems | ( | ) | const [inline] |
Definition at line 107 of file SundanceUniformRefinementPair.hpp.
References interiorEdges_.
| int Sundance::UniformRefinementPair::lookupEdge | ( | const Mesh & | mesh, |
| int | v1, | ||
| int | v2 | ||
| ) | const [protected] |
Definition at line 250 of file SundanceUniformRefinementPair.cpp.
References Sundance::lookupEdgeLIDFromVerts().
Referenced by refineTriMesh().
| const Array<int>& Sundance::UniformRefinementPair::newEdgeParallels | ( | ) | const [inline] |
Definition at line 102 of file SundanceUniformRefinementPair.hpp.
References newEdgeParallels_.
Referenced by check().
| const Array<int>& Sundance::UniformRefinementPair::newEdgeParents | ( | ) | const [inline] |
Definition at line 98 of file SundanceUniformRefinementPair.hpp.
References newEdgeParents_.
Referenced by check().
| const Array<int>& Sundance::UniformRefinementPair::newToOldElemMap | ( | ) | const [inline] |
Definition at line 87 of file SundanceUniformRefinementPair.hpp.
References newToOldElemMap_.
Referenced by check().
| const Array<int>& Sundance::UniformRefinementPair::newVertIsOnEdge | ( | ) | const [inline] |
Definition at line 77 of file SundanceUniformRefinementPair.hpp.
References newVertIsOnEdge_.
| const Array<int>& Sundance::UniformRefinementPair::newVertToOldLIDMap | ( | ) | const [inline] |
Definition at line 74 of file SundanceUniformRefinementPair.hpp.
References newVertToOldLIDMap_.
Referenced by check().
| const Array<Array<int> >& Sundance::UniformRefinementPair::oldEdgeChildren | ( | ) | const [inline] |
Definition at line 91 of file SundanceUniformRefinementPair.hpp.
References oldEdgeChildren_.
Referenced by check().
| const Array<Array<int> >& Sundance::UniformRefinementPair::oldEdgeParallels | ( | ) | const [inline] |
Definition at line 95 of file SundanceUniformRefinementPair.hpp.
References oldEdgeParallels_.
Referenced by check().
| const Array<int>& Sundance::UniformRefinementPair::oldEdgeToNewVertMap | ( | ) | const [inline] |
Definition at line 80 of file SundanceUniformRefinementPair.hpp.
References oldEdgeToNewVertMap_.
Referenced by check().
| const ArrayOfTuples<int>& Sundance::UniformRefinementPair::oldToNewElemMap | ( | ) | const [inline] |
Definition at line 83 of file SundanceUniformRefinementPair.hpp.
References oldToNewElemMap_.
Referenced by check().
| const Array<int>& Sundance::UniformRefinementPair::oldToNewVertMap | ( | ) | const [inline] |
Definition at line 71 of file SundanceUniformRefinementPair.hpp.
References oldToNewVertMap_.
Referenced by check().
| void Sundance::UniformRefinementPair::refineTriMesh | ( | ) | [protected] |
Definition at line 69 of file SundanceUniformRefinementPair.cpp.
References Sundance::Mesh::addElement(), Sundance::Mesh::addVertex(), Sundance::Mesh::centroid(), coarse_, Sundance::Mesh::comm(), Sundance::MeshType::createEmptyMesh(), Sundance::Mesh::elemZeroFacetView(), Sundance::Mesh::facetLID(), fine_, Playa::MPIComm::getNProc(), interiorEdges_, Sundance::Mesh::label(), lookupEdge(), meshType_, newEdgeParallels_, newEdgeParents_, newToOldElemMap_, newVertIsOnEdge_, newVertToOldLIDMap_, Sundance::Mesh::nodePosition(), Sundance::Mesh::numCells(), oldEdgeChildren_, oldEdgeParallels_, oldEdgeToNewVertMap_, oldToNewElemMap_, oldToNewVertMap_, Sundance::Mesh::ownerProcID(), Sundance::Mesh::spatialDim(), and Sundance::ArrayOfTuples< T >::value().
Referenced by UniformRefinementPair().
Mesh Sundance::UniformRefinementPair::coarse_ [private] |
Definition at line 122 of file SundanceUniformRefinementPair.hpp.
Referenced by check(), coarse(), and refineTriMesh().
Mesh Sundance::UniformRefinementPair::fine_ [private] |
Definition at line 123 of file SundanceUniformRefinementPair.hpp.
Referenced by check(), fine(), and refineTriMesh().
ArrayOfTuples<int> Sundance::UniformRefinementPair::interiorEdges_ [private] |
Definition at line 138 of file SundanceUniformRefinementPair.hpp.
Referenced by check(), interiorEdgesOfCoarseElems(), and refineTriMesh().
Definition at line 121 of file SundanceUniformRefinementPair.hpp.
Referenced by refineTriMesh().
Array<int> Sundance::UniformRefinementPair::newEdgeParallels_ [private] |
Definition at line 136 of file SundanceUniformRefinementPair.hpp.
Referenced by newEdgeParallels(), and refineTriMesh().
Array<int> Sundance::UniformRefinementPair::newEdgeParents_ [private] |
Definition at line 135 of file SundanceUniformRefinementPair.hpp.
Referenced by newEdgeParents(), and refineTriMesh().
Array<int> Sundance::UniformRefinementPair::newToOldElemMap_ [private] |
Definition at line 131 of file SundanceUniformRefinementPair.hpp.
Referenced by check(), newToOldElemMap(), and refineTriMesh().
Array<int> Sundance::UniformRefinementPair::newVertIsOnEdge_ [private] |
Definition at line 126 of file SundanceUniformRefinementPair.hpp.
Referenced by check(), newVertIsOnEdge(), and refineTriMesh().
Array<int> Sundance::UniformRefinementPair::newVertToOldLIDMap_ [private] |
Definition at line 127 of file SundanceUniformRefinementPair.hpp.
Referenced by newVertToOldLIDMap(), and refineTriMesh().
Array<Array<int> > Sundance::UniformRefinementPair::oldEdgeChildren_ [private] |
Definition at line 133 of file SundanceUniformRefinementPair.hpp.
Referenced by oldEdgeChildren(), and refineTriMesh().
Array<Array<int> > Sundance::UniformRefinementPair::oldEdgeParallels_ [private] |
Definition at line 134 of file SundanceUniformRefinementPair.hpp.
Referenced by oldEdgeParallels(), and refineTriMesh().
Array<int> Sundance::UniformRefinementPair::oldEdgeToNewVertMap_ [private] |
Definition at line 128 of file SundanceUniformRefinementPair.hpp.
Referenced by oldEdgeToNewVertMap(), and refineTriMesh().
ArrayOfTuples<int> Sundance::UniformRefinementPair::oldToNewElemMap_ [private] |
Definition at line 130 of file SundanceUniformRefinementPair.hpp.
Referenced by oldToNewElemMap(), and refineTriMesh().
Array<int> Sundance::UniformRefinementPair::oldToNewVertMap_ [private] |
Definition at line 125 of file SundanceUniformRefinementPair.hpp.
Referenced by oldToNewVertMap(), and refineTriMesh().