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

@ -239,8 +239,6 @@ bool Foam::KinematicParcel<ParcelType>::move(TrackData& td)
}
if (p.onBoundary() && td.keepParticle)
{
if (p.face() > -1)
{
if (isType<processorPolyPatch>(pbMesh[p.patch(p.face())]))
{
@ -248,7 +246,6 @@ bool Foam::KinematicParcel<ParcelType>::move(TrackData& td)
}
}
}
}
return td.keepParticle;
}