ENH: boundBox 'reduce' method (related to #196)
reduce() - parallel reduction of min/max values. Reduces coding for the callers. Eg, bb.reduce(); instead of the previous method: reduce(bb.min(), minOp<point>()); reduce(bb.max(), maxOp<point>()); STYLE: - use initializer list for creating static content - use point::min/point::max when defining standard boxes
Showing
- applications/test/boundBox/Test-boundBox.C 12 additions, 0 deletionsapplications/test/boundBox/Test-boundBox.C
- applications/utilities/mesh/manipulation/checkMesh/checkTopology.C 1 addition, 2 deletions...ons/utilities/mesh/manipulation/checkMesh/checkTopology.C
- src/OpenFOAM/meshes/boundBox/boundBox.C 23 additions, 39 deletionssrc/OpenFOAM/meshes/boundBox/boundBox.C
- src/OpenFOAM/meshes/boundBox/boundBox.H 3 additions, 0 deletionssrc/OpenFOAM/meshes/boundBox/boundBox.H
- src/OpenFOAM/meshes/boundBox/boundBoxTemplates.C 2 additions, 4 deletionssrc/OpenFOAM/meshes/boundBox/boundBoxTemplates.C
- src/parallel/distributed/distributedTriSurfaceMesh/distributedTriSurfaceMesh.C 5 additions, 10 deletions...ted/distributedTriSurfaceMesh/distributedTriSurfaceMesh.C
Please register or sign in to comment