diff --git a/applications/utilities/postProcessing/postProcess/postProcess.C b/applications/utilities/postProcessing/postProcess/postProcess.C index d0c998aeb2057f022b2dc5ea12b13458bd26f26d..3f7f51dd2d4d2998b2bad374fadf5f3064c9192d 100644 --- a/applications/utilities/postProcessing/postProcess/postProcess.C +++ b/applications/utilities/postProcessing/postProcess/postProcess.C @@ -32,6 +32,7 @@ Description \*---------------------------------------------------------------------------*/ #include "argList.H" +#include "profiling.H" #include "timeSelector.H" #include "ReadFields.H" #include "volFields.H" @@ -132,6 +133,7 @@ void executeFunctionObjects int main(int argc, char *argv[]) { Foam::timeSelector::addOptions(); + #include "addProfilingOption.H" #include "addRegionOption.H" #include "addFunctionObjectOptions.H" @@ -202,6 +204,9 @@ int main(int argc, char *argv[]) functionsPtr(), timei == timeDirs.size()-1 ); + + // Report to output (avoid overwriting values from simulation) + profiling::print(Info); } catch (IOerror& err) { diff --git a/etc/config.sh/bashcompletion b/etc/config.sh/bashcompletion index c2589be81f914d8a2c441a4104b4afa488c92c62..b2e723b7933e49af93ce7e69a77c3310caa018fb 100644 --- a/etc/config.sh/bashcompletion +++ b/etc/config.sh/bashcompletion @@ -4931,7 +4931,7 @@ _of_postProcess() local cur="${COMP_WORDS[COMP_CWORD]}" local prev="${COMP_WORDS[COMP_CWORD-1]}" - local opts="-constant -latestTime -list -newTimes -noFunctionObjects -noZero -parallel -srcDoc -doc -help " + local opts="-constant -latestTime -list -newTimes -noFunctionObjects -noZero -parallel -profiling -srcDoc -doc -help " local optsWithArgs="-case -decomposeParDict -dict -field -fields -func -funcs -region -roots -time " case ${prev} in diff --git a/src/OpenFOAM/db/functionObjects/functionObjectList/postProcess.H b/src/OpenFOAM/db/functionObjects/functionObjectList/postProcess.H index 06f7aa3f4e1015c73e322d50470554cf185cda89..f3c065bafc043f2bcece3e9d48afc099616f8fc9 100644 --- a/src/OpenFOAM/db/functionObjects/functionObjectList/postProcess.H +++ b/src/OpenFOAM/db/functionObjects/functionObjectList/postProcess.H @@ -143,6 +143,9 @@ if (argList::postProcess(argc, argv)) { functionsPtr->end(); } + + // Report to output (avoid overwriting values from simulation) + profiling::print(Info); } catch (IOerror& err) {