"src/vscode:/vscode.git/clone" did not exist on "fad3000249d27ca918f2655ff73c41f39b0f3127"
Commit 22736b07 authored by Peter Eastman's avatar Peter Eastman
Browse files

Fixed compilation error under some versions of gcc

parent b9075abe
...@@ -148,7 +148,7 @@ void testExclusions() { ...@@ -148,7 +148,7 @@ void testExclusions() {
ASSERT_EQUAL_VEC(Vec3(2, 0, 0), forces[0], TOL); ASSERT_EQUAL_VEC(Vec3(2, 0, 0), forces[0], TOL);
ASSERT_EQUAL_VEC(Vec3(0, 0, 0), forces[1], TOL); ASSERT_EQUAL_VEC(Vec3(0, 0, 0), forces[1], TOL);
ASSERT_EQUAL_VEC(Vec3(-2, 0, 0), forces[2], TOL); ASSERT_EQUAL_VEC(Vec3(-2, 0, 0), forces[2], TOL);
ASSERT_EQUAL_TOL(1, state.getPotentialEnergy(), TOL); ASSERT_EQUAL_TOL(1.0, state.getPotentialEnergy(), TOL);
} }
void testCutoff() { void testCutoff() {
...@@ -176,7 +176,7 @@ void testCutoff() { ...@@ -176,7 +176,7 @@ void testCutoff() {
ASSERT_EQUAL_VEC(Vec3(2, 0, 0), forces[0], TOL); ASSERT_EQUAL_VEC(Vec3(2, 0, 0), forces[0], TOL);
ASSERT_EQUAL_VEC(Vec3(0, 0, 0), forces[1], TOL); ASSERT_EQUAL_VEC(Vec3(0, 0, 0), forces[1], TOL);
ASSERT_EQUAL_VEC(Vec3(-2, 0, 0), forces[2], TOL); ASSERT_EQUAL_VEC(Vec3(-2, 0, 0), forces[2], TOL);
ASSERT_EQUAL_TOL(1, state.getPotentialEnergy(), TOL); ASSERT_EQUAL_TOL(1.0, state.getPotentialEnergy(), TOL);
} }
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