ENH: Only set parcel type ID to default if not already set

This commit is contained in:
andy
2013-05-23 14:56:23 +01:00
parent 5a12b338a0
commit 39b0fda0e9

View File

@ -566,7 +566,11 @@ void Foam::KinematicCloud<CloudType>::checkParcelProperties
{
const scalar carrierDt = mesh_.time().deltaTValue();
parcel.stepFraction() = (carrierDt - lagrangianDt)/carrierDt;
if (parcel.typeId() == -1)
{
parcel.typeId() = constProps_.parcelTypeId();
}
}