mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
BUG: Fixed keepParticle regression introduced in 8fb148bb
This commit is contained in:
@ -139,6 +139,11 @@ bool Foam::CloudFunctionObjectList<CloudType>::postMove
|
||||
const typename parcelType::trackingData& td
|
||||
)
|
||||
{
|
||||
if (!td.keepParticle)
|
||||
{
|
||||
return td.keepParticle;
|
||||
}
|
||||
|
||||
for (auto& cfo : *this)
|
||||
{
|
||||
if (!cfo.postMove(p, dt, position0, td))
|
||||
@ -159,6 +164,11 @@ bool Foam::CloudFunctionObjectList<CloudType>::postPatch
|
||||
const typename parcelType::trackingData& td
|
||||
)
|
||||
{
|
||||
if (!td.keepParticle)
|
||||
{
|
||||
return td.keepParticle;
|
||||
}
|
||||
|
||||
for (auto& cfo : *this)
|
||||
{
|
||||
if (!cfo.postPatch(p, pp, td))
|
||||
@ -178,13 +188,17 @@ bool Foam::CloudFunctionObjectList<CloudType>::postFace
|
||||
const typename parcelType::trackingData& td
|
||||
)
|
||||
{
|
||||
if (!td.keepParticle)
|
||||
{
|
||||
return td.keepParticle;
|
||||
}
|
||||
|
||||
for (auto& cfo : *this)
|
||||
{
|
||||
if (!cfo.postFace(p, td))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user