Commit 1de311c9 authored by Peter Eastman's avatar Peter Eastman
Browse files

Fixed mistake in test case

parent 9908d249
...@@ -881,7 +881,7 @@ void testChangeDT() { ...@@ -881,7 +881,7 @@ void testChangeDT() {
ASSERT_EQUAL_TOL(dt, integrator.getGlobalVariable(0), 1e-5); ASSERT_EQUAL_TOL(dt, integrator.getGlobalVariable(0), 1e-5);
vector<Vec3> values; vector<Vec3> values;
integrator.getPerDofVariable(0, values); integrator.getPerDofVariable(0, values);
ASSERT_EQUAL_TOL(dt, integrator.getGlobalVariable(0), 1e-5); ASSERT_EQUAL_VEC(Vec3(dt, dt, dt), values[0], 1e-5);
} }
integrator.setStepSize(1.0); integrator.setStepSize(1.0);
for (int i = 0; i < 5; i++) { for (int i = 0; i < 5; i++) {
...@@ -891,7 +891,7 @@ void testChangeDT() { ...@@ -891,7 +891,7 @@ void testChangeDT() {
ASSERT_EQUAL_TOL(dt, integrator.getGlobalVariable(0), 1e-5); ASSERT_EQUAL_TOL(dt, integrator.getGlobalVariable(0), 1e-5);
vector<Vec3> values; vector<Vec3> values;
integrator.getPerDofVariable(0, values); integrator.getPerDofVariable(0, values);
ASSERT_EQUAL_TOL(dt, integrator.getGlobalVariable(0), 1e-5); ASSERT_EQUAL_VEC(Vec3(dt, dt, dt), values[0], 1e-5);
} }
} }
......
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