From 7ed416b0679ca5cf12b1c87b387f1f91a1a15485 Mon Sep 17 00:00:00 2001 From: Henry Date: Sat, 25 Apr 2015 11:49:49 +0100 Subject: [PATCH] foamListTimes: Change the default behavior to not include 0 in the list To include 0 use the -zeroTime option --- .../miscellaneous/foamListTimes/foamListTimes.C | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/applications/utilities/postProcessing/miscellaneous/foamListTimes/foamListTimes.C b/applications/utilities/postProcessing/miscellaneous/foamListTimes/foamListTimes.C index b2e43e5b3..1cd84f185 100644 --- a/applications/utilities/postProcessing/miscellaneous/foamListTimes/foamListTimes.C +++ b/applications/utilities/postProcessing/miscellaneous/foamListTimes/foamListTimes.C @@ -46,12 +46,9 @@ using namespace Foam; int main(int argc, char *argv[]) { - argList::addNote - ( - "list times using timeSelector" - ); + argList::addNote("List times using timeSelector"); - timeSelector::addOptions(); // -constant enabled + timeSelector::addOptions(true, true); argList::noBanner(); argList::noParallel(); argList::addBoolOption @@ -68,7 +65,7 @@ int main(int argc, char *argv[]) if (args.optionFound("processor")) { - // determine the processor count directly + // Determine the processor count directly while (isDir(args.path()/(word("processor") + name(nProcs)))) { ++nProcs; @@ -112,8 +109,7 @@ int main(int argc, char *argv[]) ); } - - // use the times list from the master processor + // Use the times list from the master processor // and select a subset based on the command-line options instantList timeDirs = timeSelector::select (