| 44 |
|
#include "utils/simError.h" |
| 45 |
|
namespace oopse { |
| 46 |
|
Integrator::Integrator(SimInfo* info) |
| 47 |
< |
: info_(info), forceMan_(NULL) , needPotential(false), needStress(false), velocitizer_(NULL), |
| 48 |
< |
needVelocityScaling(false), dumpWriter(NULL), statWriter(NULL), thermo(info), |
| 47 |
> |
: info_(info), forceMan_(NULL) , needPotential(false), needStress(false), needReset(false), velocitizer_(NULL), |
| 48 |
> |
needVelocityScaling(false), dumpWriter(NULL), statWriter(NULL), thermo(info) |
| 49 |
|
currentSnapshot_(info->getSnapshotManager()->getCurrentSnapshot()) { |
| 50 |
|
|
| 51 |
|
simParams = info->getSimParams(); |
| 89 |
|
if (!simParams->getUseInitTime()) { |
| 90 |
|
currentSnapshot_->setTime(0.0); |
| 91 |
|
} |
| 92 |
< |
|
| 92 |
> |
|
| 93 |
> |
if (simParams->haveResetTime()) { |
| 94 |
> |
needReset = true; |
| 95 |
> |
resetTime = simParams->getResetTime(); |
| 96 |
> |
} |
| 97 |
> |
|
| 98 |
|
//create a default ForceManager |
| 99 |
|
//if the subclass wants to use a different ForceManager, use setForceManager |
| 100 |
|
forceMan_ = new ForceManager(info); |