mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: Uninitialised point.
This commit is contained in:
@ -2568,7 +2568,7 @@ Foam::pointIndexHit Foam::indexedOctree<Type>::findNearest
|
||||
{
|
||||
scalar nearestDistSqr = startDistSqr;
|
||||
label nearestShapeI = -1;
|
||||
point nearestPoint;
|
||||
point nearestPoint = vector::zero;
|
||||
|
||||
if (nodes_.size())
|
||||
{
|
||||
@ -2582,10 +2582,6 @@ Foam::pointIndexHit Foam::indexedOctree<Type>::findNearest
|
||||
nearestPoint
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
nearestPoint = vector::zero;
|
||||
}
|
||||
|
||||
return pointIndexHit(nearestShapeI != -1, nearestPoint, nearestShapeI);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user