mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: polyMesh: update pointMesh.
This commit is contained in:
@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user