diff --git a/src/mesh/autoMesh/autoHexMesh/meshRefinement/meshRefinementBaffles.C b/src/mesh/autoMesh/autoHexMesh/meshRefinement/meshRefinementBaffles.C index d369f739ca..44f29e95c9 100644 --- a/src/mesh/autoMesh/autoHexMesh/meshRefinement/meshRefinementBaffles.C +++ b/src/mesh/autoMesh/autoHexMesh/meshRefinement/meshRefinementBaffles.C @@ -2453,7 +2453,8 @@ void Foam::meshRefinement::zonify label zoneID = mesh_.cellZones().findZoneID(name); if (zoneID == -1) { - FatalErrorIn("meshRefinement::zonify(..)") << "problem" + FatalErrorInFunction + << "problem" << abort(FatalError); } insidePointCellZoneIDs[i] = zoneID; @@ -2577,7 +2578,7 @@ void Foam::meshRefinement::zonify } else { - FatalErrorIn("meshRefinement::getBafflePatches()") + FatalErrorInFunction << "problem" << exit(FatalError); } } @@ -4217,7 +4218,7 @@ Foam::autoPtr Foam::meshRefinement::zonify { if (locationsInMesh.size() != zonesInMesh.size()) { - FatalErrorIn("zonify(..)") << "problem" << abort(FatalError); + FatalErrorInFunction << "problem" << abort(FatalError); } const polyBoundaryMesh& patches = mesh_.boundaryMesh();