mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Corrected usage for FatalErrorIn(...) - multiple C files
This commit is contained in:
@ -450,8 +450,17 @@ bool Foam::interactionLists::testPointFaceDistance
|
||||
// if the algorithm hasn't returned anything by now then something has
|
||||
// gone wrong.
|
||||
|
||||
FatalErrorIn("interactionLists.C") << nl
|
||||
<< "point " << p << " to face " << faceToTest
|
||||
FatalErrorIn
|
||||
(
|
||||
"interactionLists::testPointFaceDistance"
|
||||
"("
|
||||
"const vector&, "
|
||||
"const labelList&, "
|
||||
"const vectorList&, "
|
||||
"const vector&, "
|
||||
"const vector&"
|
||||
") const"
|
||||
) << "point " << p << " to face " << faceToTest
|
||||
<< " comparison did not find a nearest point"
|
||||
<< " to be inside or outside face."
|
||||
<< abort(FatalError);
|
||||
|
||||
@ -121,8 +121,10 @@ void Foam::referredCellList::buildReferredCellList
|
||||
}
|
||||
else
|
||||
{
|
||||
FatalErrorIn ("referredCellList.C")
|
||||
<< nl << "unable to read undecomposed boundary file from "
|
||||
FatalErrorIn
|
||||
(
|
||||
"referredCellList::buildReferredCellList(bool)"
|
||||
) << "unable to read undecomposed boundary file from "
|
||||
<< "constant/polyMesh" << nl
|
||||
<< abort(FatalError);
|
||||
}
|
||||
@ -333,9 +335,10 @@ void Foam::referredCellList::buildReferredCellList
|
||||
> interactionLists::transTol
|
||||
)
|
||||
{
|
||||
FatalErrorIn ("referredCellList.C")
|
||||
<< nl << "Face pairs on patch "
|
||||
<< patch.name()
|
||||
FatalErrorIn
|
||||
(
|
||||
"referredCellList::buildReferredCellList(bool)"
|
||||
) << "Face pairs on patch " << patch.name()
|
||||
<< ", segment " << patchNames[nUP]
|
||||
<< " do not give the same referring "
|
||||
<< " transformations to within tolerance of "
|
||||
@ -423,9 +426,10 @@ void Foam::referredCellList::buildReferredCellList
|
||||
> interactionLists::transTol
|
||||
)
|
||||
{
|
||||
FatalErrorIn ("referredCellList.C")
|
||||
<< nl << "Face pairs on patch "
|
||||
<< patch.name()
|
||||
FatalErrorIn
|
||||
(
|
||||
"referredCellList::buildReferredCellList(bool)"
|
||||
) << "Face pairs on patch " << patch.name()
|
||||
<< " do not give the same referring "
|
||||
<< " transformations to within tolerance of "
|
||||
<< interactionLists::transTol << nl
|
||||
@ -1022,8 +1026,10 @@ void Foam::referredCellList::buildReferredCellList
|
||||
{
|
||||
if (faceT == -1)
|
||||
{
|
||||
FatalErrorIn ("referredCellList.C")
|
||||
<< nl << "faceT == -1 encountered but "
|
||||
FatalErrorIn
|
||||
(
|
||||
"referredCellList::buildReferredCellList(bool)"
|
||||
) << "faceT == -1 encountered but "
|
||||
<< meshFacesOnThisSegment.size()
|
||||
<< " faces found on patch segment."
|
||||
<< abort(FatalError);
|
||||
|
||||
@ -81,7 +81,7 @@ void Foam::moleculeCloud::buildConstProps()
|
||||
|
||||
if (siteIds[sI] == -1)
|
||||
{
|
||||
FatalErrorIn("moleculeCloud.C") << nl
|
||||
FatalErrorIn("moleculeCloud::buildConstProps()")
|
||||
<< siteId << " site not found."
|
||||
<< nl << abort(FatalError);
|
||||
}
|
||||
|
||||
@ -101,7 +101,7 @@ Foam::scalar Foam::pairPotential::force(const scalar r) const
|
||||
|
||||
if (k < 0)
|
||||
{
|
||||
FatalErrorIn("pairPotential.C") << nl
|
||||
FatalErrorIn("pairPotential::force(const scalar) const")
|
||||
<< "r less than rMin in pair potential " << name_ << nl
|
||||
<< abort(FatalError);
|
||||
}
|
||||
@ -138,7 +138,7 @@ Foam::scalar Foam::pairPotential::energy(const scalar r) const
|
||||
|
||||
if (k < 0)
|
||||
{
|
||||
FatalErrorIn("pairPotential.C") << nl
|
||||
FatalErrorIn("pairPotential::energy(const scalar) const")
|
||||
<< "r less than rMin in pair potential " << name_ << nl
|
||||
<< abort(FatalError);
|
||||
}
|
||||
|
||||
@ -40,7 +40,7 @@ void Foam::potential::setSiteIdList(const IOdictionary& moleculePropertiesDict)
|
||||
|
||||
if (!moleculePropertiesDict.found(id))
|
||||
{
|
||||
FatalErrorIn("potential.C") << nl
|
||||
FatalErrorIn("potential::setSiteIdList(const IOdictionary&)")
|
||||
<< id << " molecule subDict not found"
|
||||
<< nl << abort(FatalError);
|
||||
}
|
||||
@ -67,7 +67,7 @@ void Foam::potential::setSiteIdList(const IOdictionary& moleculePropertiesDict)
|
||||
|
||||
if (findIndex(siteIdNames, siteId) == -1)
|
||||
{
|
||||
FatalErrorIn("potential.C") << nl
|
||||
FatalErrorIn("potential::setSiteIdList(const IOdictionary&)")
|
||||
<< siteId << " in pairPotentialSiteIds is not in siteIds: "
|
||||
<< siteIdNames << nl << abort(FatalError);
|
||||
}
|
||||
@ -174,7 +174,7 @@ void Foam::potential::potential::readPotentialDict()
|
||||
|
||||
if (removalOrder_[rO] == -1)
|
||||
{
|
||||
FatalErrorIn("potentials.C") << nl
|
||||
FatalErrorIn("potential::readPotentialDict()")
|
||||
<< "removalOrder entry: " << remOrd[rO]
|
||||
<< " not found in idList."
|
||||
<< nl << abort(FatalError);
|
||||
@ -187,7 +187,7 @@ void Foam::potential::potential::readPotentialDict()
|
||||
|
||||
if (!potentialDict.found("pair"))
|
||||
{
|
||||
FatalErrorIn("potentials.C") << nl
|
||||
FatalErrorIn("potential::readPotentialDict()")
|
||||
<< "pair potential specification subDict not found"
|
||||
<< abort(FatalError);
|
||||
}
|
||||
@ -208,7 +208,7 @@ void Foam::potential::potential::readPotentialDict()
|
||||
{
|
||||
if (!potentialDict.found("tether"))
|
||||
{
|
||||
FatalErrorIn("potential.C") << nl
|
||||
FatalErrorIn("potential::readPotentialDict()")
|
||||
<< "tether potential specification subDict not found"
|
||||
<< abort(FatalError);
|
||||
}
|
||||
@ -289,11 +289,15 @@ void Foam::potential::potential::readMdInitialiseDict
|
||||
|
||||
if (!moleculePropertiesDict.found(id))
|
||||
{
|
||||
FatalErrorIn("potential.C") << nl
|
||||
<< "Molecule type "
|
||||
<< id
|
||||
<< " not found in moleculeProperties dictionary."
|
||||
<< nl
|
||||
FatalErrorIn
|
||||
(
|
||||
"potential::readMdInitialiseDict"
|
||||
"("
|
||||
"const IOdictionary&, "
|
||||
"IOdictionary&"
|
||||
")"
|
||||
) << "Molecule type " << id
|
||||
<< " not found in moleculeProperties dictionary." << nl
|
||||
<< abort(FatalError);
|
||||
}
|
||||
|
||||
@ -340,11 +344,15 @@ void Foam::potential::potential::readMdInitialiseDict
|
||||
}
|
||||
else
|
||||
{
|
||||
FatalErrorIn("potential.C") << nl
|
||||
<< "Tether id "
|
||||
<< tetherSiteId
|
||||
<< " not found as a site of any molecule in zone."
|
||||
<< nl
|
||||
FatalErrorIn
|
||||
(
|
||||
"potential::readMdInitialiseDict"
|
||||
"("
|
||||
"const IOdictionary&, "
|
||||
"IOdictionary&"
|
||||
")"
|
||||
) << "Tether id " << tetherSiteId
|
||||
<< " not found as a site of any molecule in zone." << nl
|
||||
<< abort(FatalError);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user