mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
foamListTimes: Change the default behavior to not include 0 in the list
To include 0 use the -zeroTime option
This commit is contained in:
@ -46,12 +46,9 @@ using namespace Foam;
|
|||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
argList::addNote
|
argList::addNote("List times using timeSelector");
|
||||||
(
|
|
||||||
"list times using timeSelector"
|
|
||||||
);
|
|
||||||
|
|
||||||
timeSelector::addOptions(); // -constant enabled
|
timeSelector::addOptions(true, true);
|
||||||
argList::noBanner();
|
argList::noBanner();
|
||||||
argList::noParallel();
|
argList::noParallel();
|
||||||
argList::addBoolOption
|
argList::addBoolOption
|
||||||
@ -68,7 +65,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
if (args.optionFound("processor"))
|
if (args.optionFound("processor"))
|
||||||
{
|
{
|
||||||
// determine the processor count directly
|
// Determine the processor count directly
|
||||||
while (isDir(args.path()/(word("processor") + name(nProcs))))
|
while (isDir(args.path()/(word("processor") + name(nProcs))))
|
||||||
{
|
{
|
||||||
++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
|
// and select a subset based on the command-line options
|
||||||
instantList timeDirs = timeSelector::select
|
instantList timeDirs = timeSelector::select
|
||||||
(
|
(
|
||||||
|
|||||||
Reference in New Issue
Block a user