ENH: polyMesh: update pointMesh.

This commit is contained in:
mattijs
2013-12-17 09:02:25 +00:00
parent 0f86a78673
commit 08a9d05ccd
9 changed files with 124 additions and 35 deletions

View File

@ -60,6 +60,7 @@ void Foam::polyMesh::clearGeom()
<< endl;
}
// Clear all geometric mesh objects
meshObject::clear<polyMesh, GeometricMeshObject>(*this);
primitiveMesh::clearGeom();
@ -93,16 +94,33 @@ void Foam::polyMesh::clearAdditionalGeom()
}
void Foam::polyMesh::clearAddressing()
void Foam::polyMesh::clearAddressing(const bool isMeshUpdate)
{
if (debug)
{
Info<< "void polyMesh::clearAddressing() : "
<< "clearing topology"
<< "clearing topology isMeshUpdate:" << isMeshUpdate
<< endl;
}
meshObject::clear<polyMesh, TopologicalMeshObject>(*this);
if (isMeshUpdate)
{
// Part of a mesh update. Keep meshObjects that have an updateMesh
// callback
meshObject::clearUpto
<
polyMesh,
TopologicalMeshObject,
UpdateableMeshObject
>
(
*this
);
}
else
{
meshObject::clear<polyMesh, TopologicalMeshObject>(*this);
}
primitiveMesh::clearAddressing();