From 047bc41b2730065b239cc2e6ad4d59935465158a Mon Sep 17 00:00:00 2001 From: Vuko Vukcevic Date: Wed, 25 Apr 2018 10:00:27 +0200 Subject: [PATCH] Updates to polyMesh::changing_ flag It's better to update it in polyTopoChanger::changeMesh() than in polyMesh::updateMesh(). This way, it is consistent with directTopoChange engine --- .../polyTopoChanger/polyTopoChangerChangeMesh.C | 6 ++++++ src/foam/meshes/polyMesh/polyMeshUpdate.C | 3 --- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/dynamicMesh/dynamicMesh/polyTopoChange/polyTopoChanger/polyTopoChangerChangeMesh.C b/src/dynamicMesh/dynamicMesh/polyTopoChange/polyTopoChanger/polyTopoChangerChangeMesh.C index 2a7111c0e..933478830 100644 --- a/src/dynamicMesh/dynamicMesh/polyTopoChange/polyTopoChanger/polyTopoChangerChangeMesh.C +++ b/src/dynamicMesh/dynamicMesh/polyTopoChange/polyTopoChanger/polyTopoChangerChangeMesh.C @@ -2491,6 +2491,9 @@ Foam::autoPtr Foam::polyTopoChanger::changeMesh() // Increment the morph index morphIndex_++; + // Mark the mesh as changing + mesh_.changing(true); + return topoChangeMap; } else @@ -2504,6 +2507,9 @@ Foam::autoPtr Foam::polyTopoChanger::changeMesh() // Sync mesh update mesh_.syncUpdateMesh(); + + // Mark the mesh as changing + mesh_.changing(true); } return autoPtr(new mapPolyMesh(mesh_)); diff --git a/src/foam/meshes/polyMesh/polyMeshUpdate.C b/src/foam/meshes/polyMesh/polyMeshUpdate.C index b96511262..5477b6ee2 100644 --- a/src/foam/meshes/polyMesh/polyMeshUpdate.C +++ b/src/foam/meshes/polyMesh/polyMeshUpdate.C @@ -36,9 +36,6 @@ Description void Foam::polyMesh::updateMesh(const mapPolyMesh& mpm) { - // Mesh is changing - changing(true); - // Update zones. Since boundary depends on zones, they need to be // updated first. HJ, 20/May/2014 pointZones_.updateMesh();