ENH: Time.C: warn for same timename

This commit is contained in:
mattijs
2012-01-26 09:42:45 +00:00
parent b0acd83fcb
commit 81ba434cc1

View File

@ -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;
}
}