mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
cleaned up logic - valid face already checked in onBoundary()
This commit is contained in:
@ -240,12 +240,9 @@ bool Foam::KinematicParcel<ParcelType>::move(TrackData& td)
|
|||||||
|
|
||||||
if (p.onBoundary() && td.keepParticle)
|
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user