From b52f7571b92ba41c8a810258b79fcbcab4c7ed25 Mon Sep 17 00:00:00 2001 From: Chris Greenshields Date: Mon, 7 Dec 2015 14:15:14 +0000 Subject: [PATCH 1/2] foamNewApp: added execution and clock times to template --- etc/codeTemplates/app/app.C | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/etc/codeTemplates/app/app.C b/etc/codeTemplates/app/app.C index e143dcdf22..fb4c8ea78e 100644 --- a/etc/codeTemplates/app/app.C +++ b/etc/codeTemplates/app/app.C @@ -39,6 +39,10 @@ int main(int argc, char *argv[]) // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + Info<< nl << "ExecutionTime = " << runTime.elapsedCpuTime() << " s" + << " ClockTime = " << runTime.elapsedClockTime() << " s" + << nl << endl; + Info<< "\nEnd\n" << endl; return 0; } From cc996852a7d1e0ec06f384888004b13285fcd6b9 Mon Sep 17 00:00:00 2001 From: Chris Greenshields Date: Mon, 7 Dec 2015 17:28:40 +0000 Subject: [PATCH 2/2] foamNewApp: corrected template case --- etc/codeTemplates/app/Make/options | 2 +- etc/codeTemplates/app/app.C | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/etc/codeTemplates/app/Make/options b/etc/codeTemplates/app/Make/options index a3ae8da833..d27c95d033 100644 --- a/etc/codeTemplates/app/Make/options +++ b/etc/codeTemplates/app/Make/options @@ -2,6 +2,6 @@ EXE_INC = \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude -LIB_LIBS = \ +EXE_LIBS = \ -lfiniteVolume \ -lmeshTools diff --git a/etc/codeTemplates/app/app.C b/etc/codeTemplates/app/app.C index fb4c8ea78e..911ba7c7de 100644 --- a/etc/codeTemplates/app/app.C +++ b/etc/codeTemplates/app/app.C @@ -43,7 +43,8 @@ int main(int argc, char *argv[]) << " ClockTime = " << runTime.elapsedClockTime() << " s" << nl << endl; - Info<< "\nEnd\n" << endl; + Info<< "End\n" << endl; + return 0; }