foamListTimes: Change the default behavior to not include 0 in the list

To include 0 use the -withZero option
This commit is contained in:
Henry 2015-04-25 15:15:40 +01:00
parent f130edc9ac
commit 3f249821ce

View file

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -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
@ -59,7 +56,7 @@ int main(int argc, char *argv[])
"processor",
"list times from processor0/ directory"
);
# include "setRootCase.H"
#include "setRootCase.H"
label nProcs = 0;
@ -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
(