diff --git a/src/lagrangian/intermediate/clouds/Templates/MPPICCloud/MPPICCloud.C b/src/lagrangian/intermediate/clouds/Templates/MPPICCloud/MPPICCloud.C index f22cac7b0f..eb436471ea 100644 --- a/src/lagrangian/intermediate/clouds/Templates/MPPICCloud/MPPICCloud.C +++ b/src/lagrangian/intermediate/clouds/Templates/MPPICCloud/MPPICCloud.C @@ -273,26 +273,33 @@ void Foam::MPPICCloud::info() tmp alpha = this->theta(); - Info<< " Min cell volume fraction = " - << gMin(alpha().internalField()) << endl; - Info<< " Max cell volume fraction = " - << gMax(alpha().internalField()) << endl; + const scalar alphaMin = gMin(alpha().internalField()); + const scalar alphaMax = gMax(alpha().internalField()); - label nOutside = 0; + Info<< " Min cell volume fraction = " << alphaMin << endl; + Info<< " Max cell volume fraction = " << alphaMax << endl; - forAllIter(typename CloudType, *this, iter) + if (alphaMax < SMALL) { - typename CloudType::parcelType& p = iter(); - const tetIndices tetIs(p.cell(), p.tetFace(), p.tetPt(), this->mesh()); - nOutside += !tetIs.tet(this->mesh()).inside(p.position()); + return; } - reduce(nOutside, plusOp