mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
objectRegistry: put the event overflow warning into a debug test
This commit is contained in:
@ -164,10 +164,13 @@ Foam::label Foam::objectRegistry::getEvent() const
|
|||||||
|
|
||||||
if (event_ == labelMax)
|
if (event_ == labelMax)
|
||||||
{
|
{
|
||||||
WarningIn("objectRegistry::getEvent() const")
|
if (objectRegistry::debug)
|
||||||
<< "Event counter has overflowed. "
|
{
|
||||||
<< "Resetting counter on all dependent objects." << nl
|
WarningIn("objectRegistry::getEvent() const")
|
||||||
<< "This might cause extra evaluations." << endl;
|
<< "Event counter has overflowed. "
|
||||||
|
<< "Resetting counter on all dependent objects." << nl
|
||||||
|
<< "This might cause extra evaluations." << endl;
|
||||||
|
}
|
||||||
|
|
||||||
// Reset event counter
|
// Reset event counter
|
||||||
curEvent = 1;
|
curEvent = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user