ENH: Updated Info, Warning and Error messages

This commit is contained in:
Andrew Heather
2015-12-08 11:15:39 +00:00
parent ae95edeea4
commit eafd5a3850
94 changed files with 351 additions and 1040 deletions

View File

@ -82,7 +82,7 @@ void Foam::displacementInterpolationMotionSolver::calcInterpolation()
{
FatalErrorInFunction
<< "Cannot find zone " << zoneName << endl
<< "Valid zones are " << mesh.faceZones().names()
<< "Valid zones are " << fZones.names()
<< exit(FatalError);
}

View File

@ -79,10 +79,8 @@ Foam::motionInterpolation::New(const fvMesh& mesh, Istream& entry)
if (cstrIter == IstreamConstructorTablePtr_->end())
{
FatalErrorIn
(
"motionInterpolation::New(const fvMesh&, const Istream&)"
) << "Unknown interpolation type "
FatalErrorInFunction
<< "Unknown interpolation type "
<< type << nl << nl
<< "Valid interpolation types are :" << endl
<< IstreamConstructorTablePtr_->sortedToc()

View File

@ -66,11 +66,8 @@ Foam::labelListList Foam::patchCorrectedInterpolation::getPatchGroups
if (patchGroups[patchI][patchJ] == -1)
{
FatalErrorIn
(
"Foam::patchCorrectedInterpolation::getPatchGroups"
"(Istream&) const"
) << "patch \"" << patchGroupNames[patchI][patchJ]
FatalErrorInFunction
<< "patch \"" << patchGroupNames[patchI][patchJ]
<< "\" not found" << exit(FatalError);
}
}

View File

@ -66,11 +66,8 @@ Foam::labelList Foam::patchTransformedInterpolation::getPatches
if (patches[patchI] == -1)
{
FatalErrorIn
(
"Foam::patchTransformedInterpolation::getPatches"
"(Istream&) const"
) << "patch \"" << patchNames[patchI]
FatalErrorInFunction
<< "patch \"" << patchNames[patchI]
<< "\" not found" << exit(FatalError);
}
}