Commit 45a05012 authored by Mark OLESEN's avatar Mark OLESEN
Browse files

STYLE: use Time::printExecutionTime() method

- makes format of ExecutionTime = ... output configurable (#788)
  and reduces code clutter.
parent 5eebe505
...@@ -64,9 +64,7 @@ int main(int argc, char *argv[]) ...@@ -64,9 +64,7 @@ int main(int argc, char *argv[])
} }
} }
Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s" runTime.printExecutionTime(Info);
<< " ClockTime = " << runTime.elapsedClockTime() << " s"
<< nl << endl;
Info<< "End" << endl; Info<< "End" << endl;
......
...@@ -207,9 +207,7 @@ void adjointEikonalSolver::solve() ...@@ -207,9 +207,7 @@ void adjointEikonalSolver::solve()
scalar residual = daEqn.solve().initialResidual(); scalar residual = daEqn.solve().initialResidual();
Info<< "Max da " << gMax(mag(da_)()) << endl; Info<< "Max da " << gMax(mag(da_)()) << endl;
Info<< "ExecutionTime = " << mesh_.time().elapsedCpuTime() << " s" mesh_.time().printExecutionTime(Info);
<< " ClockTime = " << mesh_.time().elapsedClockTime() << " s"
<< nl << endl;
// Check convergence // Check convergence
if (residual < tolerance_) if (residual < tolerance_)
......
...@@ -146,9 +146,7 @@ void adjointMeshMovementSolver::solve() ...@@ -146,9 +146,7 @@ void adjointMeshMovementSolver::solve()
Info<< "Max ma " << gMax(mag(ma_)()) << endl; Info<< "Max ma " << gMax(mag(ma_)()) << endl;
Info<< "ExecutionTime = " << mesh_.time().elapsedCpuTime() << " s" mesh_.time().printExecutionTime(Info);
<< " ClockTime = " << mesh_.time().elapsedClockTime() << " s"
<< nl << endl;
// Check convergence // Check convergence
if (residual < tolerance_) if (residual < tolerance_)
......
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