TopoSet shows wrong cell/face count while running in parallel (only showing master counts)
Summary
Hey all, during some tests I figured out that topoSet is showing wrong face/cell counts in the output while running in parallel. Its simply a problem of the outputted text but this should be fixed as well as it is somehow non conservative.
Steps to reproduce
Run the motorbike tutorial (incompressible/simpleFoam/motorBike) and add the following line to the topoSetDict:
{
name testWallFaceSet;
type faceSet;
action new;
source patchToFace;
patch lowerWall;
}
after topoSet
is executed in parallel we get the following output:
Time = 0
mesh not changed.
Created cellZoneSet inner
Applying source boxToCell
Adding cells with centre within boxes 1((-1 -0.5 0) (6 0.5 2))
cellZoneSet inner now size 253135
Created faceSet lowerWallFaces
Applying source patchToFace
Adding all faces of patches (lowerWall) ...
Found matching patch lowerWall with **662 **faces.
faceSet lowerWallFaces now size **5349**
End
As one can see, the output of faces for the lowerWall is 662 (which comes from the master proc). However, the total number of faces is 5349 as given in the output as well. Hence, people might be confused.
What is the current bug behaviour?
The output of faces/cell count is related to the master proc.
What is the expected correct behavior?
The output should include the complete amount of cells/faces of all procs.
Environment information
- OpenFOAM version : v2212
Possible fixes
Probably a global reduction of the data is missing and hence, only the master proc data is used.