ENH: enable profiling output for postProcess and -postProcess (closes #526)

- added an explicit print, but only report profiling to the log
  file from master process.

  We don't wish to overwrite any profiling that was conducted during
  the simulation. Besides which, we don't have a proper Time object
  for handling the write nicely either.
This commit is contained in:
Mark Olesen
2017-07-12 15:48:25 +02:00
parent 9161c228c3
commit 9e88a8a21e
3 changed files with 9 additions and 1 deletions

View File

@ -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)
{