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