diff --git a/src/foam/meshes/polyMesh/polyMesh.C b/src/foam/meshes/polyMesh/polyMesh.C index 38a004391..2a5fe16c5 100644 --- a/src/foam/meshes/polyMesh/polyMesh.C +++ b/src/foam/meshes/polyMesh/polyMesh.C @@ -895,6 +895,10 @@ Foam::polyMesh::~polyMesh() { clearOut(); resetMotion(); + + // Clear mesh objects. See clearGeom() + // HJ, 12/Feb/2020 + meshObjectBase::allDelete(*this); } diff --git a/src/foam/meshes/polyMesh/polyMeshClear.C b/src/foam/meshes/polyMesh/polyMeshClear.C index 48f79b03f..aee60aefe 100644 --- a/src/foam/meshes/polyMesh/polyMeshClear.C +++ b/src/foam/meshes/polyMesh/polyMeshClear.C @@ -91,9 +91,9 @@ void Foam::polyMesh::clearGeom() solutionD_ = Vector