From 23616877fbcc2dbdd479b424ff64777ec92dc3f9 Mon Sep 17 00:00:00 2001 From: danielque Date: Mon, 28 Aug 2017 16:02:58 +0200 Subject: [PATCH] use implicit type conversion --- .../voidFractionModel/dividedVoidFraction/setWeightedSource.H | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lagrangian/cfdemParticle/subModels/voidFractionModel/dividedVoidFraction/setWeightedSource.H b/src/lagrangian/cfdemParticle/subModels/voidFractionModel/dividedVoidFraction/setWeightedSource.H index 8a2ebaa5..d8a418db 100755 --- a/src/lagrangian/cfdemParticle/subModels/voidFractionModel/dividedVoidFraction/setWeightedSource.H +++ b/src/lagrangian/cfdemParticle/subModels/voidFractionModel/dividedVoidFraction/setWeightedSource.H @@ -67,7 +67,7 @@ } - particleWeights[index][storeInIndex] += 1/static_cast(nPoints); + particleWeights[index][storeInIndex] += 1.0/nPoints; particleVolumes[index][storeInIndex] += particleVolume; particleV[index][0] += particleVolume; //====================================================//