Increase tolerance in Angle test.
authorDavid van der Spoel <spoel@xray.bmc.uu.se>
Fri, 8 Feb 2019 09:00:35 +0000 (10:00 +0100)
committerMark Abraham <mark.j.abraham@gmail.com>
Fri, 8 Feb 2019 13:13:13 +0000 (14:13 +0100)
One of the new listed-forces tests failed due to
precision in post-submit. Increasing the tolerance
should fix it.

Part of #2795

Change-Id: I1586a92642b4fc257ad65d94337e7caf99385f53

src/gromacs/listed_forces/tests/bonded.cpp

index 55657e698b7f44be014b7733e8af5cf800ec2cc1..ed3a185712d1371cf7b04b777e824f8438c1a496 100644 (file)
@@ -526,8 +526,8 @@ const real cQuarticAngles[5] = { 1.1, 2.3, 4.6, 7.8, 9.2 };
 //! Function types for testing angles. Add new terms at the end.
 std::vector<iListInput> c_InputAngles =
 {
-    { iListInput(1e-3, 1e-8).setHarmonic(F_ANGLES, 100.0, 50.0) },
-    { iListInput(1e-3, 1e-8).setHarmonic(F_ANGLES, 100.15, 50.0, 95.0, 30.0) },
+    { iListInput(2e-3, 1e-8).setHarmonic(F_ANGLES, 100.0, 50.0) },
+    { iListInput(2e-3, 1e-8).setHarmonic(F_ANGLES, 100.15, 50.0, 95.0, 30.0) },
     { iListInput(8e-3, 1e-8).setHarmonic(F_G96ANGLES, 100.0, 50.0) },
     { iListInput(8e-3, 1e-8).setHarmonic(F_G96ANGLES, 100.0, 50.0, 95.0, 30.0) },
     { iListInput().setLinearAngle(50.0, 0.4) },