fvMeshGeometry: Dump core if phi() is called for a non-moving mesh to help trace problem

This commit is contained in:
Henry 2014-05-18 21:18:30 +01:00
parent 4c9dc30ed4
commit 08cff2ac41

View file

@ -441,7 +441,7 @@ const surfaceScalarField& fvMesh::phi() const
{ {
FatalErrorIn("fvMesh::phi()") FatalErrorIn("fvMesh::phi()")
<< "mesh flux field does not exist, is the mesh actually moving?" << "mesh flux field does not exist, is the mesh actually moving?"
<< exit(FatalError); << abort(FatalError);
} }
// Set zero current time // Set zero current time
@ -461,7 +461,7 @@ surfaceScalarField& fvMesh::setPhi()
{ {
FatalErrorIn("fvMesh::setPhi()") FatalErrorIn("fvMesh::setPhi()")
<< "mesh flux field does not exist, is the mesh actually moving?" << "mesh flux field does not exist, is the mesh actually moving?"
<< exit(FatalError); << abort(FatalError);
} }
return *phiPtr_; return *phiPtr_;