STYLE: Updated error messages to use new FatalErrorInFunction

This commit is contained in:
Andrew Heather
2015-12-22 17:00:59 +00:00
parent cab9b02c9e
commit 76c0096cb6

View File

@ -2453,7 +2453,8 @@ void Foam::meshRefinement::zonify
label zoneID = mesh_.cellZones().findZoneID(name); label zoneID = mesh_.cellZones().findZoneID(name);
if (zoneID == -1) if (zoneID == -1)
{ {
FatalErrorIn("meshRefinement::zonify(..)") << "problem" FatalErrorInFunction
<< "problem"
<< abort(FatalError); << abort(FatalError);
} }
insidePointCellZoneIDs[i] = zoneID; insidePointCellZoneIDs[i] = zoneID;
@ -2577,7 +2578,7 @@ void Foam::meshRefinement::zonify
} }
else else
{ {
FatalErrorIn("meshRefinement::getBafflePatches()") FatalErrorInFunction
<< "problem" << exit(FatalError); << "problem" << exit(FatalError);
} }
} }
@ -4217,7 +4218,7 @@ Foam::autoPtr<Foam::mapPolyMesh> Foam::meshRefinement::zonify
{ {
if (locationsInMesh.size() != zonesInMesh.size()) if (locationsInMesh.size() != zonesInMesh.size())
{ {
FatalErrorIn("zonify(..)") << "problem" << abort(FatalError); FatalErrorInFunction << "problem" << abort(FatalError);
} }
const polyBoundaryMesh& patches = mesh_.boundaryMesh(); const polyBoundaryMesh& patches = mesh_.boundaryMesh();