Commit 8b5e1619 authored by Andrew Heather's avatar Andrew Heather
Browse files

cleaned up logic - valid face already checked in onBoundary()

parent c6feaace
......@@ -240,12 +240,9 @@ bool Foam::KinematicParcel<ParcelType>::move(TrackData& td)
if (p.onBoundary() && td.keepParticle)
{
if (p.face() > -1)
if (isType<processorPolyPatch>(pbMesh[p.patch(p.face())]))
{
if (isType<processorPolyPatch>(pbMesh[p.patch(p.face())]))
{
td.switchProcessor = true;
}
td.switchProcessor = true;
}
}
}
......
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