foamReport: wrong mesh statistics when running in parallel
Summary
When using the foamReport function object on a parallel case, some mesh builtin entries only report values from processor0 (number of cells, faces, points)
Steps to reproduce
Run the motorbike tutorial.
What is the current bug behaviour?
checkMesh output:
Mesh stats
points: 427682
faces: 1127871
internal faces: 1038577
cells: 353724
But foamReport output different values for cells, points and faces:
| Number of cells | 58932 |
| Number of faces | 189342 |
| Number of points | 72863 |
The 58932 cells reported by foamReport correspond to the number of cells in processor0 instead of the total number of cells in the mesh.
Mesh bounds and number of patches are correctly reported.
What is the expected correct behavior?
Report the total number of cells/points/faces in the mesh.
Relevant logs and/or images
Environment information
- OpenFOAM version : v2412
- Patch : 0
- Build : _45e7c4a0-20241224
- Operating system : WSL (Ubuntu 20.04)