Commit d2453d1b authored by peastman's avatar peastman
Browse files

Increased a tolerance that was too small on some devices in single precision mode

parent 61ab8cb4
......@@ -78,7 +78,7 @@ void testLargeSystem() {
const int numParticles = numMolecules*2;
const double cutoff = 2.0;
const double boxSize = 4.0;
const double tolerance = 10;
const double tolerance = 15;
System system;
system.setDefaultPeriodicBoxVectors(Vec3(boxSize, 0, 0), Vec3(0, boxSize, 0), Vec3(0, 0, boxSize));
NonbondedForce* nonbonded = new NonbondedForce();
......@@ -127,6 +127,7 @@ void testLargeSystem() {
forceNorm += f.dot(f);
}
forceNorm = sqrt(forceNorm/(5*numMolecules));
cout<<forceNorm<<" "<<2*tolerance<<endl;
ASSERT(forceNorm < 2*tolerance);
}
......
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