From 820bc3943acaf58f5cd02ae9d87842f54ad4b78e Mon Sep 17 00:00:00 2001
From: mattijs <mattijs>
Date: Fri, 29 Aug 2014 10:37:26 +0100
Subject: [PATCH] ENH: polyMesh: avoid virtual mechanism

---
 src/OpenFOAM/meshes/polyMesh/polyMesh.C | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/OpenFOAM/meshes/polyMesh/polyMesh.C b/src/OpenFOAM/meshes/polyMesh/polyMesh.C
index 668a595321e..945e727b768 100644
--- a/src/OpenFOAM/meshes/polyMesh/polyMesh.C
+++ b/src/OpenFOAM/meshes/polyMesh/polyMesh.C
@@ -1179,7 +1179,9 @@ Foam::tmp<Foam::scalarField> Foam::polyMesh::movePoints
 
     if (debug && moveError)
     {
-        write();
+        // Write mesh to ease debugging. Note we want to avoid calling
+        // e.g. fvMesh::write since meshPhi not yet complete.
+        polyMesh::write();
     }
 
     return sweptVols;
-- 
GitLab