Commit ad2aebce authored by Peter Eastman's avatar Peter Eastman
Browse files

Fixed compilation error under Windows

parent 4130dac8
......@@ -118,7 +118,7 @@ void testIdealGas() {
}
volume /= steps;
double expected = numParticles*BOLTZ*temp[i]/pressureInMD;//+numParticles*(4*M_PI/3)*sigma*sigma*sigma;
ASSERT_USUALLY_EQUAL_TOL(expected, volume, 3/std::sqrt(steps));
ASSERT_USUALLY_EQUAL_TOL(expected, volume, 3/std::sqrt((double) steps));
}
}
......
......@@ -118,7 +118,7 @@ void testIdealGas() {
}
volume /= steps;
double expected = numParticles*BOLTZ*temp[i]/pressureInMD;//+numParticles*(4*M_PI/3)*sigma*sigma*sigma;
ASSERT_USUALLY_EQUAL_TOL(expected, volume, 3/std::sqrt(steps));
ASSERT_USUALLY_EQUAL_TOL(expected, volume, 3/std::sqrt((double) steps));
}
}
......
......@@ -117,7 +117,7 @@ void testIdealGas() {
}
volume /= steps;
double expected = numParticles*BOLTZ*temp[i]/pressureInMD;//+numParticles*(4*M_PI/3)*sigma*sigma*sigma;
ASSERT_USUALLY_EQUAL_TOL(expected, volume, 3/std::sqrt(steps));
ASSERT_USUALLY_EQUAL_TOL(expected, volume, 3/std::sqrt((double) steps));
}
}
......
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