50 int main(
int argc,
char *argv[])
61 "list times from processor0/ directory" 66 "remove selected time directories" 70 "withFunctionObjects",
71 "execute functionObjects" 75 "withFunctionEntries",
76 "execute functionEntries" 96 <<
"No processor* directories found" 101 databases.setSize(nProcs);
135 databases[0].times(),
143 for (
label proci=0; proci<nProcs; proci++)
157 if (
isDir(procTimePath))
181 Info<< timeDirs[timeI].name() <<
endl;
#define forAll(list, i)
Loop across all elements in list.
A class for handling file names.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const fileName & rootPath() const
Return root path.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool optionFound(const word &opt) const
Return true if the named option is found.
static void noParallel()
Remove the parallel options.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
static int disableFunctionEntries
bool isDir(const fileName &, const bool followLink=true)
Does the name exist as a directory in the file system?
A class for handling words, derived from string.
const fileOperation & fileHandler()
Get current file handler.
static word controlDictName
The default control dictionary name (normally "controlDict")
instantList select(const instantList &) const
Select a list of Time values that are within the ranges.
bool rmDir(const fileName &)
Remove a directory and its contents.
const fileName & caseName() const
Return case name (parallel run) or global case (serial run)
word name(const complex &)
Return a string representation of a complex.
fileName path() const
Return the path to the caseName.
virtual label nProcs(const fileName &dir, const fileName &local="") const
Get number of processor directories/results. Used for e.g.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
static void addBoolOption(const word &opt, const string &usage="")
Add to a bool option to validOptions with usage information.
static void addNote(const string &)
Add extra notes for the usage information.
Foam::argList args(argc, argv)
static void addOptions(const bool constant=true, const bool withZero=false)
Add the options handled by timeSelector to argList::validOptions.