From 76c0096cb6b5f393e8fbbdda7ed19a3b6d92ec43 Mon Sep 17 00:00:00 2001 From: Andrew Heather Date: Tue, 22 Dec 2015 17:00:59 +0000 Subject: [PATCH] STYLE: Updated error messages to use new FatalErrorInFunction --- .../autoHexMesh/meshRefinement/meshRefinementBaffles.C | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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();