Skip to content
Snippets Groups Projects
Commit 81ba434c authored by mattijs's avatar mattijs
Browse files

ENH: Time.C: warn for same timename

parent b0acd83f
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment