timeSelector: Add support for -newTimes option

//- Return the set of times selected based on the argList options
    //  including support for \b -newTimes in which times are selected
    //  if the file <fName> does not exist in the time directory.
    //  Also set the runTime to the first instance or the
    //  \c constant/ directory if no instances are specified or available
    static instantList select
    (
        Time& runTime,
        const argList& args,
        const word& fName
    );

This is experimental functionality and currently on test in the yPlus
post-processing utility.
This commit is contained in:
Henry Weller
2015-06-24 10:04:29 +01:00
parent 0e7de1b8df
commit 5c6203309b
3 changed files with 57 additions and 9 deletions

View File

@ -191,7 +191,7 @@ int main(int argc, char *argv[])
#include "setRootCase.H"
#include "createTime.H"
instantList timeDirs = timeSelector::select0(runTime, args);
instantList timeDirs = timeSelector::select(runTime, args, "yPlus");
#include "createNamedMesh.H"
const bool compressible = args.optionFound("compressible");