diff --git a/applications/utilities/postProcessing/foamPostProcess/foamPostProcess.C b/applications/utilities/postProcessing/foamPostProcess/foamPostProcess.C index fe0ca2cf36..581089d04d 100644 --- a/applications/utilities/postProcessing/foamPostProcess/foamPostProcess.C +++ b/applications/utilities/postProcessing/foamPostProcess/foamPostProcess.C @@ -68,6 +68,9 @@ Usage - \par -list List the available configured functionObjects + - \par -list + List the available functionObject templates + Example usage: - Print the list of available configured functionObjects: \verbatim @@ -208,11 +211,19 @@ int main(int argc, char *argv[]) #include "addRegionOption.H" #include "addFunctionObjectOptions.H" + argList::addBoolOption + ( + "listTemplates", + "List the available functionObjects templates" + ); + // Set functionObject post-processing mode functionObject::postProcess = true; #include "setRootCase.H" + bool printedList = false; + if (args.optionFound("list")) { Info<< nl @@ -222,6 +233,26 @@ int main(int argc, char *argv[]) functionEntries::includeFuncEntry::functionObjectDictPath ) << endl; + + printedList = true; + } + + if (args.optionFound("listTemplates")) + { + Info<< nl + << "Available functionObject templates:" + << listAllConfigFiles + ( + functionEntries::includeFuncEntry::functionObjectDictPath + /"../functionTemplates" + ) + << endl; + + printedList = true; + } + + if (printedList) + { return 0; }