From e0bb09718b5222abf619a29db28f9f43bc1dcc99 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 e143dcdf2..fb4c8ea78 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 ece0783afd4b3b1629a0b1ada3d5b0d4d73aec33 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 a3ae8da83..d27c95d03 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 fb4c8ea78..911ba7c7d 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; }