mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: use Time::printExecutionTime() method
- makes format of ExecutionTime = ... output configurable (#788) and reduces code clutter.
This commit is contained in:
@ -64,9 +64,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
|
||||
<< " ClockTime = " << runTime.elapsedClockTime() << " s"
|
||||
<< nl << endl;
|
||||
runTime.printExecutionTime(Info);
|
||||
|
||||
Info<< "End" << endl;
|
||||
|
||||
|
||||
@ -207,9 +207,7 @@ void adjointEikonalSolver::solve()
|
||||
scalar residual = daEqn.solve().initialResidual();
|
||||
Info<< "Max da " << gMax(mag(da_)()) << endl;
|
||||
|
||||
Info<< "ExecutionTime = " << mesh_.time().elapsedCpuTime() << " s"
|
||||
<< " ClockTime = " << mesh_.time().elapsedClockTime() << " s"
|
||||
<< nl << endl;
|
||||
mesh_.time().printExecutionTime(Info);
|
||||
|
||||
// Check convergence
|
||||
if (residual < tolerance_)
|
||||
|
||||
@ -146,9 +146,7 @@ void adjointMeshMovementSolver::solve()
|
||||
|
||||
Info<< "Max ma " << gMax(mag(ma_)()) << endl;
|
||||
|
||||
Info<< "ExecutionTime = " << mesh_.time().elapsedCpuTime() << " s"
|
||||
<< " ClockTime = " << mesh_.time().elapsedClockTime() << " s"
|
||||
<< nl << endl;
|
||||
mesh_.time().printExecutionTime(Info);
|
||||
|
||||
// Check convergence
|
||||
if (residual < tolerance_)
|
||||
|
||||
Reference in New Issue
Block a user