MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / clearAddressing

Function clearAddressing

src/OpenFOAM/meshes/polyMesh/polyMeshClear.C:77–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75
76
77void Foam::polyMesh::clearAddressing(const bool isMeshUpdate)
78{
79 if (debug)
80 {
81 InfoInFunction
82 << "Clearing topology isMeshUpdate:" << isMeshUpdate << endl;
83 }
84
85 if (isMeshUpdate)
86 {
87 // Part of a mesh update. Keep meshObjects that have an updateMesh
88 // callback
89 meshObject::clearUpto
90 <
91 pointMesh,
92 TopologicalMeshObject,
93 UpdateableMeshObject
94 >
95 (
96 *this
97 );
98 meshObject::clearUpto
99 <
100 polyMesh,
101 TopologicalMeshObject,
102 UpdateableMeshObject
103 >
104 (
105 *this
106 );
107 }
108 else
109 {
110 meshObject::clear<pointMesh, TopologicalMeshObject>(*this);
111 meshObject::clear<polyMesh, TopologicalMeshObject>(*this);
112 }
113
114 primitiveMesh::clearAddressing();
115
116 // parallelData depends on the processorPatch ordering so force
117 // recalculation
118 globalMeshDataPtr_.clear();
119
120 // Reset valid directions
121 geometricD_ = Zero;
122 solutionD_ = Zero;
123
124 // Update zones
125 pointZones_.clearAddressing();
126 faceZones_.clearAddressing();
127 cellZones_.clearAddressing();
128
129 // Remove the stored tet base points
130 tetBasePtIsPtr_.clear();
131
132 // Remove the cell tree
133 cellTreePtr_.clear();
134}

Callers 2

resetPrimitivesFunction · 0.70
clearOutFunction · 0.70

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected