From 10c1f27e06ca753688996e68ce64122b3f77cfa7 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Wed, 26 Jun 2024 11:10:47 +0100 Subject: [PATCH] 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. --- src/OpenFOAM/db/Time/Time.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OpenFOAM/db/Time/Time.C b/src/OpenFOAM/db/Time/Time.C index a2f92f166a..b7038b6c56 100644 --- a/src/OpenFOAM/db/Time/Time.C +++ b/src/OpenFOAM/db/Time/Time.C @@ -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; } } }