66 |
|
|
67 |
|
Globals* simParams = info_->getSimParams(); |
68 |
|
|
69 |
< |
if (!simParams->getUseInitXSstate()) { |
69 |
> |
if (!simParams->getUseIntialExtendedSystemState()) { |
70 |
|
Snapshot* currSnapshot = info_->getSnapshotManager()->getCurrentSnapshot(); |
71 |
|
currSnapshot->setChi(0.0); |
72 |
|
currSnapshot->setIntegralOfChiDt(0.0); |
336 |
|
currentSnapshot_->setIntegralOfChiDt(integralOfChidt); |
337 |
|
|
338 |
|
saveEta(); |
339 |
+ |
} |
340 |
+ |
|
341 |
+ |
void NPT::resetIntegrator(){ |
342 |
+ |
currentSnapshot_->setChi(0.0); |
343 |
+ |
currentSnapshot_->setIntegralOfChiDt(0.0); |
344 |
+ |
resetEta(); |
345 |
|
} |
346 |
|
|
347 |
+ |
|
348 |
+ |
void NPT::resetEta() { |
349 |
+ |
Mat3x3d etaMat(0.0); |
350 |
+ |
currentSnapshot_->setEta(etaMat); |
351 |
+ |
} |
352 |
+ |
|
353 |
|
} |