mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
applications: Update ...ErrorIn -> ...ErrorInFunction
Avoids the clutter and maintenance effort associated with providing the function signature string.
This commit is contained in:
@ -75,10 +75,8 @@ label findEdge(const primitiveMesh& mesh, const label v0, const label v1)
|
||||
}
|
||||
}
|
||||
|
||||
FatalErrorIn
|
||||
(
|
||||
"findEdge(const primitiveMesh&, const label, const label)"
|
||||
) << "Cannot find edge between mesh points " << v0 << " and " << v1
|
||||
FatalErrorInFunction
|
||||
<< "Cannot find edge between mesh points " << v0 << " and " << v1
|
||||
<< abort(FatalError);
|
||||
|
||||
return -1;
|
||||
@ -92,7 +90,7 @@ void checkPatch(const polyBoundaryMesh& bMesh, const word& name)
|
||||
|
||||
if (patchI == -1)
|
||||
{
|
||||
FatalErrorIn("checkPatch(const polyBoundaryMesh&, const word&)")
|
||||
FatalErrorInFunction
|
||||
<< "Cannot find patch " << name << nl
|
||||
<< "It should be present but of zero size" << endl
|
||||
<< "Valid patches are " << bMesh.names()
|
||||
@ -101,7 +99,7 @@ void checkPatch(const polyBoundaryMesh& bMesh, const word& name)
|
||||
|
||||
if (bMesh[patchI].size())
|
||||
{
|
||||
FatalErrorIn("checkPatch(const polyBoundaryMesh&, const word&)")
|
||||
FatalErrorInFunction
|
||||
<< "Patch " << name << " is present but non-zero size"
|
||||
<< exit(FatalError);
|
||||
}
|
||||
@ -143,7 +141,7 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
if (!mesh.isInternalFace(faces[i]))
|
||||
{
|
||||
FatalErrorIn(args.executable())
|
||||
FatalErrorInFunction
|
||||
<< "Face " << faces[i] << " in faceSet " << setName
|
||||
<< " is not an internal face."
|
||||
<< exit(FatalError);
|
||||
@ -282,7 +280,7 @@ int main(int argc, char *argv[])
|
||||
Info<< "Writing mesh to " << runTime.timeName() << endl;
|
||||
if (!mesh.write())
|
||||
{
|
||||
FatalErrorIn(args.executable())
|
||||
FatalErrorInFunction
|
||||
<< "Failed writing polyMesh."
|
||||
<< exit(FatalError);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user