Commit 4fd3493a authored by Peter Eastman's avatar Peter Eastman
Browse files

Made Ewald test cases run slightly faster

parent 6b25abb3
...@@ -222,7 +222,7 @@ void testErrorTolerance(NonbondedForce::NonbondedMethod method) { ...@@ -222,7 +222,7 @@ void testErrorTolerance(NonbondedForce::NonbondedMethod method) {
// For various values of the cutoff and error tolerance, see if the actual error is reasonable. // For various values of the cutoff and error tolerance, see if the actual error is reasonable.
for (double cutoff = 1.0; cutoff < boxWidth/2; cutoff += 0.2) { for (double cutoff = 1.0; cutoff < boxWidth/2; cutoff *= 1.2) {
force->setCutoffDistance(cutoff); force->setCutoffDistance(cutoff);
vector<Vec3> refForces; vector<Vec3> refForces;
double norm = 0.0; double norm = 0.0;
......
...@@ -221,7 +221,7 @@ void testErrorTolerance(NonbondedForce::NonbondedMethod method) { ...@@ -221,7 +221,7 @@ void testErrorTolerance(NonbondedForce::NonbondedMethod method) {
// For various values of the cutoff and error tolerance, see if the actual error is reasonable. // For various values of the cutoff and error tolerance, see if the actual error is reasonable.
for (double cutoff = 1.0; cutoff < boxWidth/2; cutoff += 0.2) { for (double cutoff = 1.0; cutoff < boxWidth/2; cutoff *= 1.2) {
force->setCutoffDistance(cutoff); force->setCutoffDistance(cutoff);
vector<Vec3> refForces; vector<Vec3> refForces;
double norm = 0.0; double norm = 0.0;
......
...@@ -325,7 +325,7 @@ void testErrorTolerance(NonbondedForce::NonbondedMethod method) { ...@@ -325,7 +325,7 @@ void testErrorTolerance(NonbondedForce::NonbondedMethod method) {
// For various values of the cutoff and error tolerance, see if the actual error is reasonable. // For various values of the cutoff and error tolerance, see if the actual error is reasonable.
for (double cutoff = 1.0; cutoff < boxWidth/2; cutoff += 0.2) { for (double cutoff = 1.0; cutoff < boxWidth/2; cutoff *= 1.2) {
force->setCutoffDistance(cutoff); force->setCutoffDistance(cutoff);
vector<Vec3> refForces; vector<Vec3> refForces;
double norm = 0.0; double norm = 0.0;
......
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