"...amoeba/platforms/common/src/kernels/hippoFixedField.cc" did not exist on "b53c0f105dac6e177b9ae368452d4176c28842aa"
Commit 99bca8c1 authored by Peter Eastman's avatar Peter Eastman
Browse files

Fixed compilation errors on Windows

parent 7c522d60
......@@ -127,7 +127,7 @@ void testRandomVelocities() {
ke += 0.5*system.getParticleMass(i)*v.dot(v);
}
double expected = 0.5*(numParticles*3-system.getNumConstraints())*BOLTZ*temperture;
ASSERT_USUALLY_EQUAL_TOL(expected, ke, 4/sqrt(numParticles));
ASSERT_USUALLY_EQUAL_TOL(expected, ke, 4/sqrt((double) numParticles));
}
int main(int argc, char* argv[]) {
......
......@@ -109,7 +109,7 @@ void testRandomVelocities() {
ke += 0.5*system.getParticleMass(i)*v.dot(v);
}
double expected = 0.5*(numParticles*3-system.getNumConstraints())*BOLTZ*temperture;
ASSERT_USUALLY_EQUAL_TOL(expected, ke, 4/sqrt(numParticles));
ASSERT_USUALLY_EQUAL_TOL(expected, ke, 4/sqrt((double) numParticles));
}
int main() {
......
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