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

This commit is contained in:
andy
2009-05-22 16:24:24 +01:00
parent c6feaace79
commit 8b5e161973

View File

@ -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;
}
}
}