"wrappers/python/vscode:/vscode.git/clone" did not exist on "9bf57c0b5c72a44055dd001f87fc8701f7d650e4"
Commit ce4df913 authored by peastman's avatar peastman
Browse files

Merge pull request #144 from peastman/master

Reference implementation of CustomIntegrator did not initialize the random number seed correctly
parents cdff97b1 55ec5c4c
......@@ -2026,6 +2026,7 @@ void ReferenceIntegrateCustomStepKernel::initialize(const System& system, const
// Create the computation objects.
dynamics = new ReferenceCustomDynamics(system.getNumParticles(), integrator);
SimTKOpenMMUtilities::setRandomNumberSeed((unsigned int) integrator.getRandomNumberSeed());
vector<ReferenceCCMAAlgorithm::AngleInfo> angles;
findAnglesForCCMA(system, angles);
constraints = new ReferenceCCMAAlgorithm(system.getNumParticles(), numConstraints, constraintIndices, constraintDistances, masses, angles, (RealOpenMM)integrator.getConstraintTolerance());
......
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