timeSelector - handle cases with missing constant/ or 0/ directories

This commit is contained in:
Mark Olesen
2008-12-02 15:55:51 +01:00
parent 507e7a1b98
commit a13f97d59d
2 changed files with 49 additions and 26 deletions

View File

@ -28,6 +28,7 @@ Description
#include "argList.H"
#include "Time.H"
#include "timeSelector.H"
using namespace Foam;
@ -36,13 +37,18 @@ using namespace Foam;
int main(int argc, char *argv[])
{
argList::noParallel();
Foam::timeSelector::addOptions();
# include "setRootCase.H"
# include "createTime.H"
Info<< runTime.times() << endl;
Info<< "Times found:" << runTime.times() << endl;
Info << "End\n" << endl;
instantList timeDirs = Foam::timeSelector::select0(runTime, args);
Info<< "Times selected:" << timeDirs << endl;
Info<< "\nEnd\n" << endl;
return 0;
}