mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: report the function object name that causes the FatalError
This commit is contained in:
@ -827,7 +827,9 @@ bool Foam::functionObjectList::read()
|
|||||||
{
|
{
|
||||||
// Bit of trickery to get the original message
|
// Bit of trickery to get the original message
|
||||||
err.write(Warning, false);
|
err.write(Warning, false);
|
||||||
InfoInFunction << nl << endl;
|
InfoInFunction << nl
|
||||||
|
<< "--> while loading function object '" << key << "'"
|
||||||
|
<< nl << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Restore previous exception throwing state
|
// Restore previous exception throwing state
|
||||||
|
|||||||
@ -876,6 +876,7 @@ bool Foam::functionObjects::forces::read(const dictionary& dict)
|
|||||||
}
|
}
|
||||||
|
|
||||||
coordSys_.clear();
|
coordSys_.clear();
|
||||||
|
localSystem_ = false;
|
||||||
|
|
||||||
// Centre of rotation for moment calculations
|
// Centre of rotation for moment calculations
|
||||||
// specified directly, from coordinate system, or implicitly (0 0 0)
|
// specified directly, from coordinate system, or implicitly (0 0 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user