Skip to content
Snippets Groups Projects
Commit 598198b3 authored by Henry's avatar Henry
Browse files

objectRegistry: put the event overflow warning into a debug test

parent 32d7d051
Branches
Tags
No related merge requests found
......@@ -164,10 +164,13 @@ Foam::label Foam::objectRegistry::getEvent() const
if (event_ == labelMax)
{
WarningIn("objectRegistry::getEvent() const")
<< "Event counter has overflowed. "
<< "Resetting counter on all dependent objects." << nl
<< "This might cause extra evaluations." << endl;
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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment