postProcess: Added '-list' option to list the available configured functionObjects

This commit is contained in:
Henry Weller
2016-06-01 16:28:07 +01:00
parent bb3910ddaf
commit dc4c881f25
5 changed files with 71 additions and 4 deletions

View File

@ -74,6 +74,13 @@ if (argList::postProcess(argc, argv))
#include "addFunctionObjectOptions.H"
#include "setRootCase.H"
if (args.optionFound("list"))
{
functionObjectList::list();
return 0;
}
#include INCLUDE_FILE(CREATE_TIME)
Foam::instantList timeDirs = Foam::timeSelector::select0(runTime, args);
#include INCLUDE_FILE(CREATE_MESH)