codedFunctionObjects: Info stream in #codeRead is executed twice + Feature request: Info stream number of total cells to standard log.
If an Info stream is executed in the #codeRead section of a codedFunctionObject, the line is shown twice. (I don't know if any variables might be assigned twice too?)
Steps to reproduce
Put a line
Info << "Test" << endl;
into the #codeRead section of a codedFunctionObject and run the case.
I attached a codedFunctionObject "addCellsInfo" to the example case. This is also sort of a feature request: It would be very neat to report the number of total cells in the mesh to standard log on mesh built-up. This would increase the information content of the logs and consequently make it possible to compare the performance between 2 runs just by analyzing their log files. pitzDaily_codedfObj.tar.gz
What is the current bug behaviour?
What is the expected correct behavior?
Relevant logs and/or images
- OpenFOAM version : v2012 and also in OF7
- Operating system : openSUSE
- Hardware info :
- Compiler : gcc