"vscode:/vscode.git/clone" did not exist on "38d967b221d09ffd50b1481bdd2a85fa4cd61c8e"
Commit b03eebf1 authored by peastman's avatar peastman
Browse files

Merge pull request #756 from peastman/variable

Fixed uninitialized memory in variable step size integrators
parents bf8de1fd a7ab2753
......@@ -49,6 +49,7 @@ VariableLangevinIntegrator::VariableLangevinIntegrator(double temperature, doubl
setErrorTolerance(errorTol);
setConstraintTolerance(1e-5);
setRandomNumberSeed(osrngseed());
setStepSize(0.0);
}
void VariableLangevinIntegrator::initialize(ContextImpl& contextRef) {
......
......@@ -43,6 +43,7 @@ using std::vector;
VariableVerletIntegrator::VariableVerletIntegrator(double errorTol) : errorTol(errorTol) {
setConstraintTolerance(1e-5);
setStepSize(0.0);
}
void VariableVerletIntegrator::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