mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user