Time: Changed FatalError in the time precision update to Warning

Due to rounding to the nearest value it is possible for the updated time name to
predate the previous time name after a precision change, for example as a
consequence of a sudden reduction in time-step.  This is not an error and should
not cause the run to stop but the user is warned about the temporary anomaly in
the printing of time.
This commit is contained in:
Henry Weller
2024-06-26 11:10:47 +01:00
parent b3b1b5b6da
commit 10c1f27e06

View File

@ -1342,14 +1342,14 @@ Foam::Time& Foam::Time::operator++()
)
)
{
FatalErrorInFunction
WarningInFunction
<< "Current time name " << dimensionedScalar::name()
<< " is set to an instance prior to the "
"previous one "
<< oldTimeName << nl
<< " This might result in temporal "
"discontinuities."
<< exit(FatalError);
<< endl;
}
}
}