use implicit type conversion

This commit is contained in:
danielque
2017-08-28 16:02:58 +02:00
parent 4e50b3e06c
commit 23616877fb

View File

@ -67,7 +67,7 @@
}
particleWeights[index][storeInIndex] += 1/static_cast<scalar>(nPoints);
particleWeights[index][storeInIndex] += 1.0/nPoints;
particleVolumes[index][storeInIndex] += particleVolume;
particleV[index][0] += particleVolume;
//====================================================//