From 60d0c5923072c691fab144faf560da585d948a57 Mon Sep 17 00:00:00 2001
From: Henry <Henry>
Date: Sun, 18 May 2014 21:18:30 +0100
Subject: [PATCH] fvMeshGeometry: Dump core if phi() is called for a non-moving
 mesh to help trace problem

---
 src/finiteVolume/fvMesh/fvMeshGeometry.C | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/finiteVolume/fvMesh/fvMeshGeometry.C b/src/finiteVolume/fvMesh/fvMeshGeometry.C
index 422ca761dc1..3c61706f46b 100644
--- a/src/finiteVolume/fvMesh/fvMeshGeometry.C
+++ b/src/finiteVolume/fvMesh/fvMeshGeometry.C
@@ -441,7 +441,7 @@ const surfaceScalarField& fvMesh::phi() const
     {
         FatalErrorIn("fvMesh::phi()")
             << "mesh flux field does not exist, is the mesh actually moving?"
-            << exit(FatalError);
+            << abort(FatalError);
     }
 
     // Set zero current time
@@ -461,7 +461,7 @@ surfaceScalarField& fvMesh::setPhi()
     {
         FatalErrorIn("fvMesh::setPhi()")
             << "mesh flux field does not exist, is the mesh actually moving?"
-            << exit(FatalError);
+            << abort(FatalError);
     }
 
     return *phiPtr_;
-- 
GitLab