mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: remove all references to wallPoint::greatPoint.
Replaced with point::max wherever possible. Is VGREAT, not GREAT so be careful with calculations.
This commit is contained in:
@ -800,9 +800,7 @@ void Foam::isoSurface::calcSnappedPoint
|
||||
const pointField& pts = mesh_.points();
|
||||
const pointField& cc = mesh_.cellCentres();
|
||||
|
||||
|
||||
const point greatPoint(VGREAT, VGREAT, VGREAT);
|
||||
pointField collapsedPoint(mesh_.nPoints(), greatPoint);
|
||||
pointField collapsedPoint(mesh_.nPoints(), point::max);
|
||||
|
||||
|
||||
// Work arrays
|
||||
@ -966,7 +964,7 @@ void Foam::isoSurface::calcSnappedPoint
|
||||
|
||||
|
||||
// Synchronise snap location
|
||||
syncUnseparatedPoints(collapsedPoint, greatPoint);
|
||||
syncUnseparatedPoints(collapsedPoint, point::max);
|
||||
|
||||
|
||||
snappedPoint.setSize(mesh_.nPoints());
|
||||
@ -974,7 +972,7 @@ void Foam::isoSurface::calcSnappedPoint
|
||||
|
||||
forAll(collapsedPoint, pointI)
|
||||
{
|
||||
if (collapsedPoint[pointI] != greatPoint)
|
||||
if (collapsedPoint[pointI] != point::max)
|
||||
{
|
||||
snappedPoint[pointI] = snappedPoints.size();
|
||||
snappedPoints.append(collapsedPoint[pointI]);
|
||||
|
||||
@ -630,8 +630,7 @@ void Foam::isoSurfaceCell::calcSnappedPoint
|
||||
labelList& snappedPoint
|
||||
) const
|
||||
{
|
||||
const point greatPoint(VGREAT, VGREAT, VGREAT);
|
||||
pointField collapsedPoint(mesh_.nPoints(), greatPoint);
|
||||
pointField collapsedPoint(mesh_.nPoints(), point::max);
|
||||
|
||||
|
||||
// Work arrays
|
||||
@ -764,7 +763,7 @@ void Foam::isoSurfaceCell::calcSnappedPoint
|
||||
mesh_,
|
||||
collapsedPoint,
|
||||
minEqOp<point>(),
|
||||
greatPoint,
|
||||
point::max,
|
||||
true // are coordinates so separate
|
||||
);
|
||||
|
||||
@ -773,7 +772,7 @@ void Foam::isoSurfaceCell::calcSnappedPoint
|
||||
|
||||
forAll(collapsedPoint, pointI)
|
||||
{
|
||||
if (collapsedPoint[pointI] != greatPoint)
|
||||
if (collapsedPoint[pointI] != point::max)
|
||||
{
|
||||
snappedPoint[pointI] = snappedPoints.size();
|
||||
snappedPoints.append(collapsedPoint[pointI]);
|
||||
|
||||
Reference in New Issue
Block a user