"vscode:/vscode.git/clone" did not exist on "d8fea939841767a2200f6da23eafc65fe4dc6e0c"
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() { ...@@ -127,7 +127,7 @@ void testRandomVelocities() {
ke += 0.5*system.getParticleMass(i)*v.dot(v); ke += 0.5*system.getParticleMass(i)*v.dot(v);
} }
double expected = 0.5*(numParticles*3-system.getNumConstraints())*BOLTZ*temperture; 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[]) { int main(int argc, char* argv[]) {
......
...@@ -109,7 +109,7 @@ void testRandomVelocities() { ...@@ -109,7 +109,7 @@ void testRandomVelocities() {
ke += 0.5*system.getParticleMass(i)*v.dot(v); ke += 0.5*system.getParticleMass(i)*v.dot(v);
} }
double expected = 0.5*(numParticles*3-system.getNumConstraints())*BOLTZ*temperture; 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 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