objectRegistry: put the event overflow warning into a debug test

This commit is contained in:
Henry
2011-10-19 12:18:08 +01:00
parent 32d7d05192
commit 598198b3f6

View File

@ -163,11 +163,14 @@ Foam::label Foam::objectRegistry::getEvent() const
label curEvent = event_++;
if (event_ == labelMax)
{
if (objectRegistry::debug)
{
WarningIn("objectRegistry::getEvent() const")
<< "Event counter has overflowed. "
<< "Resetting counter on all dependent objects." << nl
<< "This might cause extra evaluations." << endl;
}
// Reset event counter
curEvent = 1;