Commit c4c12a0c authored by mark's avatar mark
Browse files

BUG: disturbing warning about multiple initialization of profiling

- For example, decomposePar use multiple simultaneous Times.
  So permit multiple initialization without a warning. (issue #157)
parent 81265bdc
......@@ -94,12 +94,7 @@ void Foam::profiling::initialize
const Time& owner
)
{
if (pool_)
{
WarningInFunction
<< "Already initialized" << endl;
}
else
if (!pool_)
{
pool_ = new profiling(ioObj, owner);
......@@ -111,6 +106,9 @@ void Foam::profiling::initialize
pool_->push(info, pool_->clockTime_);
Info<< "profiling initialized" << nl;
}
// silently ignore multiple initialization
// eg, decomposePar use multiple simultaneous Times
}
......@@ -121,12 +119,7 @@ void Foam::profiling::initialize
const Time& owner
)
{
if (pool_)
{
WarningInFunction
<< "Already initialized" << endl;
}
else
if (!pool_)
{
pool_ = new profiling(dict, ioObj, owner);
......@@ -138,6 +131,9 @@ void Foam::profiling::initialize
pool_->push(info, pool_->clockTime_);
Info<< "profiling initialized" << nl;
}
// silently ignore multiple initialization
// eg, decomposePar use multiple simultaneous Times
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment