mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Updated Info, Warning and Error messages
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
||||
@ -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()
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user