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