Commit 7fda6ce1 authored by mattijs's avatar mattijs
Browse files

ENH: PointEdgeWave : only call update if valid point info

parent a45f394c
......@@ -515,13 +515,16 @@ void Foam::PointEdgeWave<Type>::handleProcPatches()
label meshPointI = pd.sharedPointLabels()[i];
// Retrieve my entries from the shared points
updatePoint
(
meshPointI,
sharedData[pd.sharedPointAddr()[i]],
propagationTol_,
allPointInfo_[meshPointI]
);
if (sharedData[pd.sharedPointAddr()[i]].valid())
{
updatePoint
(
meshPointI,
sharedData[pd.sharedPointAddr()[i]],
propagationTol_,
allPointInfo_[meshPointI]
);
}
}
}
......
......@@ -350,8 +350,10 @@ public:
{
forAll(x, i)
{
x[i].updatePoint(y[i], PointEdgeWave<Type>::propagationTol());
}
if (y[i].valid())
{
x[i].updatePoint(y[i], PointEdgeWave<Type>::propagationTol());
}
}
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment