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 44 of file SundanceUniformRefinementPair.hpp.
| Sundance::UniformRefinementPair::UniformRefinementPair | ( | ) |
Definition at line 11 of file SundanceUniformRefinementPair.cpp.
| Sundance::UniformRefinementPair::UniformRefinementPair | ( | const MeshType & | meshType, | |
| const Mesh & | coarse | |||
| ) |
Definition at line 13 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 228 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] |
| const Mesh& Sundance::UniformRefinementPair::fine | ( | ) | const [inline] |
| const ArrayOfTuples<int>& Sundance::UniformRefinementPair::interiorEdgesOfCoarseElems | ( | ) | const [inline] |
| int Sundance::UniformRefinementPair::lookupEdge | ( | const Mesh & | mesh, | |
| int | v1, | |||
| int | v2 | |||
| ) | const [protected] |
Definition at line 207 of file SundanceUniformRefinementPair.cpp.
References Sundance::Mesh::facetLID(), and Sundance::Mesh::getCofacets().
Referenced by refineTriMesh().
| const Array<int>& Sundance::UniformRefinementPair::newEdgeParallels | ( | ) | const [inline] |
Definition at line 91 of file SundanceUniformRefinementPair.hpp.
References newEdgeParallels_.
Referenced by check().
| const Array<int>& Sundance::UniformRefinementPair::newEdgeParents | ( | ) | const [inline] |
Definition at line 87 of file SundanceUniformRefinementPair.hpp.
References newEdgeParents_.
Referenced by check().
| const Array<int>& Sundance::UniformRefinementPair::newToOldElemMap | ( | ) | const [inline] |
Definition at line 76 of file SundanceUniformRefinementPair.hpp.
References newToOldElemMap_.
Referenced by check().
| const Array<int>& Sundance::UniformRefinementPair::newVertIsOnEdge | ( | ) | const [inline] |
| const Array<int>& Sundance::UniformRefinementPair::newVertToOldLIDMap | ( | ) | const [inline] |
Definition at line 63 of file SundanceUniformRefinementPair.hpp.
References newVertToOldLIDMap_.
Referenced by check().
| const Array<Array<int> >& Sundance::UniformRefinementPair::oldEdgeChildren | ( | ) | const [inline] |
Definition at line 80 of file SundanceUniformRefinementPair.hpp.
References oldEdgeChildren_.
Referenced by check().
| const Array<Array<int> >& Sundance::UniformRefinementPair::oldEdgeParallels | ( | ) | const [inline] |
Definition at line 84 of file SundanceUniformRefinementPair.hpp.
References oldEdgeParallels_.
Referenced by check().
| const Array<int>& Sundance::UniformRefinementPair::oldEdgeToNewVertMap | ( | ) | const [inline] |
Definition at line 69 of file SundanceUniformRefinementPair.hpp.
References oldEdgeToNewVertMap_.
Referenced by check().
| const ArrayOfTuples<int>& Sundance::UniformRefinementPair::oldToNewElemMap | ( | ) | const [inline] |
Definition at line 72 of file SundanceUniformRefinementPair.hpp.
References oldToNewElemMap_.
Referenced by check().
| const Array<int>& Sundance::UniformRefinementPair::oldToNewVertMap | ( | ) | const [inline] |
Definition at line 60 of file SundanceUniformRefinementPair.hpp.
References oldToNewVertMap_.
Referenced by check().
| void Sundance::UniformRefinementPair::refineTriMesh | ( | ) | [protected] |
Definition at line 26 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 111 of file SundanceUniformRefinementPair.hpp.
Referenced by check(), coarse(), and refineTriMesh().
Mesh Sundance::UniformRefinementPair::fine_ [private] |
Definition at line 112 of file SundanceUniformRefinementPair.hpp.
Referenced by check(), fine(), and refineTriMesh().
ArrayOfTuples<int> Sundance::UniformRefinementPair::interiorEdges_ [private] |
Definition at line 127 of file SundanceUniformRefinementPair.hpp.
Referenced by check(), interiorEdgesOfCoarseElems(), and refineTriMesh().
Array<int> Sundance::UniformRefinementPair::newEdgeParallels_ [private] |
Definition at line 125 of file SundanceUniformRefinementPair.hpp.
Referenced by newEdgeParallels(), and refineTriMesh().
Array<int> Sundance::UniformRefinementPair::newEdgeParents_ [private] |
Definition at line 124 of file SundanceUniformRefinementPair.hpp.
Referenced by newEdgeParents(), and refineTriMesh().
Array<int> Sundance::UniformRefinementPair::newToOldElemMap_ [private] |
Definition at line 120 of file SundanceUniformRefinementPair.hpp.
Referenced by check(), newToOldElemMap(), and refineTriMesh().
Array<int> Sundance::UniformRefinementPair::newVertIsOnEdge_ [private] |
Definition at line 115 of file SundanceUniformRefinementPair.hpp.
Referenced by check(), newVertIsOnEdge(), and refineTriMesh().
Array<int> Sundance::UniformRefinementPair::newVertToOldLIDMap_ [private] |
Definition at line 116 of file SundanceUniformRefinementPair.hpp.
Referenced by newVertToOldLIDMap(), and refineTriMesh().
Array<Array<int> > Sundance::UniformRefinementPair::oldEdgeChildren_ [private] |
Definition at line 122 of file SundanceUniformRefinementPair.hpp.
Referenced by oldEdgeChildren(), and refineTriMesh().
Array<Array<int> > Sundance::UniformRefinementPair::oldEdgeParallels_ [private] |
Definition at line 123 of file SundanceUniformRefinementPair.hpp.
Referenced by oldEdgeParallels(), and refineTriMesh().
Array<int> Sundance::UniformRefinementPair::oldEdgeToNewVertMap_ [private] |
Definition at line 117 of file SundanceUniformRefinementPair.hpp.
Referenced by oldEdgeToNewVertMap(), and refineTriMesh().
ArrayOfTuples<int> Sundance::UniformRefinementPair::oldToNewElemMap_ [private] |
Definition at line 119 of file SundanceUniformRefinementPair.hpp.
Referenced by oldToNewElemMap(), and refineTriMesh().
Array<int> Sundance::UniformRefinementPair::oldToNewVertMap_ [private] |
Definition at line 114 of file SundanceUniformRefinementPair.hpp.
Referenced by oldToNewVertMap(), and refineTriMesh().