# | Line 36 | Line 36 | VelocityVerletIntegrator::VelocityVerletIntegrator(Sim | |
---|---|---|
36 | ||
37 | namespace oopse { | |
38 | VelocityVerletIntegrator::VelocityVerletIntegrator(SimInfo *info) : Integrator(info), rotAlgo(NULL) { | |
39 | – | rotAlgo = new DLM(); |
39 | dt2 = 0.5 * dt; | |
40 | + | rotAlgo = new DLM(); |
41 | + | rattle = new Rattle(info); |
42 | } | |
43 | ||
44 | VelocityVerletIntegrator::~VelocityVerletIntegrator() { | |
45 | delete rotAlgo; | |
46 | + | delete rattle; |
47 | } | |
48 | ||
49 | void VelocityVerletIntegrator::initialize(){ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |