mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: triSurfaceMesh: operate non-parallel so not do a reduction of points
Also redistributePar: - recognise going from undecomposed to many - read on master only
This commit is contained in:
@ -243,7 +243,7 @@ Foam::triSurfaceMesh::triSurfaceMesh(const IOobject& io, const triSurface& s)
|
||||
{
|
||||
const pointField& pts = triSurface::points();
|
||||
|
||||
bounds() = boundBox(pts);
|
||||
bounds() = boundBox(pts, false);
|
||||
}
|
||||
|
||||
|
||||
@ -292,7 +292,7 @@ Foam::triSurfaceMesh::triSurfaceMesh(const IOobject& io)
|
||||
{
|
||||
const pointField& pts = triSurface::points();
|
||||
|
||||
bounds() = boundBox(pts);
|
||||
bounds() = boundBox(pts, false);
|
||||
}
|
||||
|
||||
|
||||
@ -355,7 +355,7 @@ Foam::triSurfaceMesh::triSurfaceMesh
|
||||
|
||||
const pointField& pts = triSurface::points();
|
||||
|
||||
bounds() = boundBox(pts);
|
||||
bounds() = boundBox(pts, false);
|
||||
|
||||
// Have optional minimum quality for normal calculation
|
||||
if (dict.readIfPresent("minQuality", minQuality_) && minQuality_ > 0)
|
||||
@ -463,7 +463,7 @@ void Foam::triSurfaceMesh::movePoints(const pointField& newPoints)
|
||||
edgeTree_.clear();
|
||||
triSurface::movePoints(newPoints);
|
||||
|
||||
bounds() = boundBox(triSurface::points());
|
||||
bounds() = boundBox(triSurface::points(), false);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -2376,10 +2376,8 @@ void Foam::distributedTriSurfaceMesh::distribute
|
||||
clearOut();
|
||||
|
||||
// Set the bounds() value to the boundBox of the undecomposed surface
|
||||
triSurfaceMesh::bounds() = boundBox(points());
|
||||
bounds() = boundBox(points(), true);
|
||||
|
||||
reduce(bounds().min(), minOp<point>());
|
||||
reduce(bounds().max(), maxOp<point>());
|
||||
|
||||
// Regions stays same
|
||||
// Volume type stays same.
|
||||
|
||||
Reference in New Issue
Block a user