247 |
|
return props; |
248 |
|
} |
249 |
|
|
250 |
< |
void LDForceManager::postCalculation() { |
250 |
> |
void LDForceManager::postCalculation(bool needStress){ |
251 |
|
SimInfo::MoleculeIterator i; |
252 |
|
Molecule::IntegrableObjectIterator j; |
253 |
|
Molecule* mol; |
362 |
|
if(!simParams->getUsePeriodicBoundaryConditions()) |
363 |
|
veloMunge->removeAngularDrift(); |
364 |
|
|
365 |
< |
ForceManager::postCalculation(); |
365 |
> |
ForceManager::postCalculation(needStress); |
366 |
|
} |
367 |
|
|
368 |
|
void LDForceManager::genRandomForceAndTorque(Vector3d& force, Vector3d& torque, unsigned int index, RealType variance) { |
370 |
|
|
371 |
|
Vector<RealType, 6> Z; |
372 |
|
Vector<RealType, 6> generalForce; |
373 |
– |
|
373 |
|
|
374 |
|
Z[0] = randNumGen_.randNorm(0, variance); |
375 |
|
Z[1] = randNumGen_.randNorm(0, variance); |