Commit 42fefa91 authored by Jason Swails's avatar Jason Swails
Browse files

One more int -> double

parent b0c5b0c1
...@@ -260,7 +260,7 @@ double NonbondedForceImpl::calcDispersionCorrection(const System& system, const ...@@ -260,7 +260,7 @@ double NonbondedForceImpl::calcDispersionCorrection(const System& system, const
sum3 += count*epsilon*(evalIntegral(cutoff, switchDist, cutoff, sigma)-evalIntegral(switchDist, switchDist, cutoff, sigma)); sum3 += count*epsilon*(evalIntegral(cutoff, switchDist, cutoff, sigma)-evalIntegral(switchDist, switchDist, cutoff, sigma));
} }
double numParticles = (double) system.getNumParticles(); double numParticles = (double) system.getNumParticles();
int numInteractions = (numParticles*(numParticles+1))/2; double numInteractions = (numParticles*(numParticles+1))/2;
sum1 /= numInteractions; sum1 /= numInteractions;
sum2 /= numInteractions; sum2 /= numInteractions;
sum3 /= numInteractions; sum3 /= numInteractions;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment