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

ENH: PointEdgeWave : only call update if valid point info

parent a45f394c
......@@ -515,6 +515,8 @@ void Foam::PointEdgeWave<Type>::handleProcPatches()
label meshPointI = pd.sharedPointLabels()[i];
// Retrieve my entries from the shared points
if (sharedData[pd.sharedPointAddr()[i]].valid())
{
updatePoint
(
meshPointI,
......@@ -523,6 +525,7 @@ void Foam::PointEdgeWave<Type>::handleProcPatches()
allPointInfo_[meshPointI]
);
}
}
}
......
......@@ -349,6 +349,8 @@ public:
void operator()(List<Type>& x, const List<Type>& y) const
{
forAll(x, i)
{
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