Completed update ...ErrorIn -> ...ErrorInFunction

Avoids the clutter and maintenance effort associated with providing the
function signature string.
This commit is contained in:
Henry Weller
2015-11-11 09:03:39 +00:00
parent cc99b65d77
commit 5e6a7ea282
678 changed files with 3357 additions and 8219 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -70,11 +70,8 @@ void Foam::multiDirRefinement::addCells
if (iter == splitMap.end())
{
FatalErrorIn
(
"multiDirRefinement::addCells(const Map<label>&"
", List<refineCell>&)"
) << "Problem : cannot find added cell for cell "
FatalErrorInFunction
<< "Problem : cannot find added cell for cell "
<< refCell.cellNo() << abort(FatalError);
}
@ -143,11 +140,8 @@ void Foam::multiDirRefinement::addCells
}
else if (origCell[slave] != cellI)
{
FatalErrorIn
(
"multiDirRefinement::addCells(const primitiveMesh&"
", const Map<label>&"
) << "Added cell " << slave << " has two different masters:"
FatalErrorInFunction
<< "Added cell " << slave << " has two different masters:"
<< origCell[slave] << " , " << cellI
<< abort(FatalError);
}
@ -167,11 +161,8 @@ void Foam::multiDirRefinement::addCells
if (masterI >= addedCells_.size())
{
FatalErrorIn
(
"multiDirRefinement::addCells(const primitiveMesh&"
", const Map<label>&"
) << "Map of added cells contains master cell " << masterI
FatalErrorInFunction
<< "Map of added cells contains master cell " << masterI
<< " which is not a valid cell number" << endl
<< "This means that the mesh is not consistent with the"
<< " done refinement" << endl
@ -298,11 +289,8 @@ void Foam::multiDirRefinement::refineHex8
if (iter == hexCellSet.end())
{
FatalErrorIn
(
"multiDirRefinement::refineHex8"
"(polyMesh&, const labelList&, const bool)"
) << "Resulting mesh would not satisfy 2:1 ratio"
FatalErrorInFunction
<< "Resulting mesh would not satisfy 2:1 ratio"
<< " when refining cell " << cellI << abort(FatalError);
}
else
@ -317,11 +305,8 @@ void Foam::multiDirRefinement::refineHex8
{
if (iter() != 2)
{
FatalErrorIn
(
"multiDirRefinement::refineHex8"
"(polyMesh&, const labelList&, const bool)"
) << "Resulting mesh would not satisfy 2:1 ratio"
FatalErrorInFunction
<< "Resulting mesh would not satisfy 2:1 ratio"
<< " when refining cell " << iter.key()
<< abort(FatalError);
}