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:
@ -84,12 +84,8 @@ wordList ReadUniformFields
|
||||
|
||||
if (iter == localNamesSet.end())
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"ReadFields<class GeoField>"
|
||||
"(const IOobjectList&, PtrList<GeoField>&"
|
||||
", const bool)"
|
||||
) << "Fields not synchronised across processors." << endl
|
||||
FatalErrorInFunction
|
||||
<< "Fields not synchronised across processors." << endl
|
||||
<< "Master has fields " << masterNames
|
||||
<< " processor " << Pstream::myProcNo()
|
||||
<< " has fields " << localNames << exit(FatalError);
|
||||
@ -102,12 +98,8 @@ wordList ReadUniformFields
|
||||
|
||||
forAllConstIter(HashSet<word>, localNamesSet, iter)
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"ReadFields<class GeoField>"
|
||||
"(const IOobjectList&, PtrList<GeoField>&"
|
||||
", const bool)"
|
||||
) << "Fields not synchronised across processors." << endl
|
||||
FatalErrorInFunction
|
||||
<< "Fields not synchronised across processors." << endl
|
||||
<< "Master has fields " << masterNames
|
||||
<< " processor " << Pstream::myProcNo()
|
||||
<< " has fields " << localNames << exit(FatalError);
|
||||
@ -400,7 +392,7 @@ void calc
|
||||
}
|
||||
else
|
||||
{
|
||||
FatalErrorIn(args.executable())
|
||||
FatalErrorInFunction
|
||||
<< "Incorrect dimensions of phi: " << phi.dimensions()
|
||||
<< nl << exit(FatalError);
|
||||
}
|
||||
|
||||
@ -80,7 +80,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
if (!nProcs)
|
||||
{
|
||||
FatalErrorIn(args.executable())
|
||||
FatalErrorInFunction
|
||||
<< "No processor* directories found"
|
||||
<< exit(FatalError);
|
||||
}
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -113,7 +113,7 @@ void Foam::channelIndex::walkOppositeFaces
|
||||
|
||||
if (oppositeFaceI == -1)
|
||||
{
|
||||
FatalErrorIn("channelIndex::walkOppositeFaces(..)")
|
||||
FatalErrorInFunction
|
||||
<< "Face:" << faceI << " owner cell:" << ownCell
|
||||
<< " is not a hex?" << abort(FatalError);
|
||||
}
|
||||
@ -135,7 +135,7 @@ void Foam::channelIndex::walkOppositeFaces
|
||||
|
||||
if (oppositeFaceI == -1)
|
||||
{
|
||||
FatalErrorIn("channelIndex::walkOppositeFaces(..)")
|
||||
FatalErrorInFunction
|
||||
<< "Face:" << faceI << " neighbour cell:" << neiCell
|
||||
<< " is not a hex?" << abort(FatalError);
|
||||
}
|
||||
@ -247,7 +247,7 @@ Foam::channelIndex::channelIndex
|
||||
|
||||
if (patchI == -1)
|
||||
{
|
||||
FatalErrorIn("channelIndex::channelIndex(const polyMesh&)")
|
||||
FatalErrorInFunction
|
||||
<< "Illegal patch " << patchNames[i]
|
||||
<< ". Valid patches are " << patches.name()
|
||||
<< exit(FatalError);
|
||||
|
||||
Reference in New Issue
Block a user