diff --git a/src/OpenFOAM/db/Time/Time.C b/src/OpenFOAM/db/Time/Time.C index 7abcf7f9a0dc85ecc2e14bc14701cc3ea02eddef..4c23251542ff2a6742318eb9f9c42c5ac829963f 100644 --- a/src/OpenFOAM/db/Time/Time.C +++ b/src/OpenFOAM/db/Time/Time.C @@ -984,6 +984,17 @@ Foam::Time& Foam::Time::operator++() << " to " << precision_ << " to distinguish between timeNames at time " << value() << endl; + + if (precision_ == 100 && precision_ != oldPrecision) + { + // Reached limit. + WarningIn("Time::operator++()") + << "Current time name " << dimensionedScalar::name() + << " is the old as the previous one " << oldTimeName + << endl + << " This might result in overwriting old results." + << endl; + } }