"...git@developer.sourcefind.cn:2222/OpenDAS/flashmla.git" did not exist on "3a477917766a3198c179635165699b6b88964cb5"
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 ...@@ -2026,6 +2026,7 @@ void ReferenceIntegrateCustomStepKernel::initialize(const System& system, const
// Create the computation objects. // Create the computation objects.
dynamics = new ReferenceCustomDynamics(system.getNumParticles(), integrator); dynamics = new ReferenceCustomDynamics(system.getNumParticles(), integrator);
SimTKOpenMMUtilities::setRandomNumberSeed((unsigned int) integrator.getRandomNumberSeed());
vector<ReferenceCCMAAlgorithm::AngleInfo> angles; vector<ReferenceCCMAAlgorithm::AngleInfo> angles;
findAnglesForCCMA(system, angles); findAnglesForCCMA(system, angles);
constraints = new ReferenceCCMAAlgorithm(system.getNumParticles(), numConstraints, constraintIndices, constraintDistances, masses, angles, (RealOpenMM)integrator.getConstraintTolerance()); 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