Commit 1d88314e authored by Peter Eastman's avatar Peter Eastman
Browse files

Fixed inconsistency between plaforms in constraints with CustomIntegrator

parent ff555815
...@@ -6265,10 +6265,8 @@ void CommonIntegrateCustomStepKernel::prepareForComputation(ContextImpl& context ...@@ -6265,10 +6265,8 @@ void CommonIntegrateCustomStepKernel::prepareForComputation(ContextImpl& context
for (int step = numSteps-1; step >= 0; step--) { for (int step = numSteps-1; step >= 0; step--) {
if (stepType[step] == CustomIntegrator::ConstrainPositions) if (stepType[step] == CustomIntegrator::ConstrainPositions)
beforeConstrain = true; beforeConstrain = true;
else if (stepType[step] == CustomIntegrator::ComputePerDof && variable[step] == "x" && beforeConstrain) { else if (stepType[step] == CustomIntegrator::ComputePerDof && variable[step] == "x" && beforeConstrain)
storePosAsDelta[step] = true; storePosAsDelta[step] = true;
beforeConstrain = false;
}
} }
bool storedAsDelta = false; bool storedAsDelta = false;
for (int step = 0; step < numSteps; step++) { for (int step = 0; step < numSteps; step++) {
......
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