Commit 288f05e0 authored by Mark Olesen's avatar Mark Olesen

STYLE: use Time printExecutionTime

parent 8f6e65ae
......@@ -36,8 +36,6 @@ using namespace Foam;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Main program:
int main(int argc, char *argv[])
{
#include "setRootCase.H"
......@@ -45,11 +43,10 @@ int main(int argc, char *argv[])
Module::cartesianMeshGenerator cmg(runTime);
Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s\n"
<< "ClockTime = " << runTime.elapsedClockTime() << " s" << endl;
cmg.writeMesh();
runTime.printExecutionTime(Info);
Info<< "End\n" << endl;
return 0;
}
......
......@@ -46,11 +46,10 @@ int main(int argc, char *argv[])
Module::voronoiMeshGenerator pmg(runTime);
Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s\n"
<< "ClockTime = " << runTime.elapsedClockTime() << endl;
pmg.writeMesh();
runTime.printExecutionTime(Info);
Info<< "End\n" << endl;
return 0;
}
......
......@@ -36,23 +36,20 @@ using namespace Foam;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Main program:
int main(int argc, char *argv[])
{
#include "setRootCase.H"
#include "createTime.H"
// tetrahedral mesher cannot be run in parallel yet
// Tetrahedral mesher cannot be run in parallel yet
argList::noParallel();
Module::tetMeshGenerator tmg(runTime);
Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s\n"
<< "ClockTime = " << runTime.elapsedClockTime() << endl;
tmg.writeMesh();
runTime.printExecutionTime(Info);
Info<< "End\n" << endl;
return 0;
}
......
Markdown is supported
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