Commit 293eccf9 authored by Peter Eastman's avatar Peter Eastman
Browse files

Reduced default constraint tolerance to 1e-5

parent a29ebb6f
......@@ -45,7 +45,7 @@ BrownianIntegrator::BrownianIntegrator(double temperature, double frictionCoeff,
setTemperature(temperature);
setFriction(frictionCoeff);
setStepSize(stepSize);
setConstraintTolerance(1e-4);
setConstraintTolerance(1e-5);
setRandomNumberSeed((int) time(NULL));
}
......
......@@ -44,7 +44,7 @@ using std::vector;
CustomIntegrator::CustomIntegrator(double stepSize) : globalsAreCurrent(true), forcesAreValid(false) {
setStepSize(stepSize);
setConstraintTolerance(1e-4);
setConstraintTolerance(1e-5);
setRandomNumberSeed((int) time(NULL));
kineticEnergy = "m*v*v/2";
}
......
......@@ -45,7 +45,7 @@ LangevinIntegrator::LangevinIntegrator(double temperature, double frictionCoeff,
setTemperature(temperature);
setFriction(frictionCoeff);
setStepSize(stepSize);
setConstraintTolerance(1e-4);
setConstraintTolerance(1e-5);
setRandomNumberSeed((int) time(NULL));
}
......
......@@ -46,7 +46,7 @@ VariableLangevinIntegrator::VariableLangevinIntegrator(double temperature, doubl
setTemperature(temperature);
setFriction(frictionCoeff);
setErrorTolerance(errorTol);
setConstraintTolerance(1e-4);
setConstraintTolerance(1e-5);
setRandomNumberSeed((int) time(NULL));
}
......
......@@ -42,7 +42,7 @@ using std::string;
using std::vector;
VariableVerletIntegrator::VariableVerletIntegrator(double errorTol) : errorTol(errorTol) {
setConstraintTolerance(1e-4);
setConstraintTolerance(1e-5);
}
void VariableVerletIntegrator::initialize(ContextImpl& contextRef) {
......
......@@ -42,7 +42,7 @@ using std::vector;
VerletIntegrator::VerletIntegrator(double stepSize) {
setStepSize(stepSize);
setConstraintTolerance(1e-4);
setConstraintTolerance(1e-5);
}
void VerletIntegrator::initialize(ContextImpl& contextRef) {
......
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