"wrappers/vscode:/vscode.git/clone" did not exist on "539c1f1d44d23b7939612e96790b24da5744a5b4"
Unverified Commit 520f7c8d authored by Andy Simmonett's avatar Andy Simmonett
Browse files

Attempt to fix failing tests

parent 2c78200c
......@@ -53,6 +53,7 @@ NoseHooverIntegrator::NoseHooverIntegrator(double stepSize):
{
setStepSize(stepSize);
setConstraintTolerance(1e-5);
setMaximumPairDistance(0.0);
}
NoseHooverIntegrator::NoseHooverIntegrator(double temperature, double collisionFrequency, double stepSize,
int chainLength, int numMTS, int numYoshidaSuzuki) :
......@@ -61,6 +62,7 @@ NoseHooverIntegrator::NoseHooverIntegrator(double temperature, double collisionF
setStepSize(stepSize);
setConstraintTolerance(1e-5);
setMaximumPairDistance(0.0);
addThermostat(temperature, collisionFrequency, chainLength, numMTS, numYoshidaSuzuki);
}
......
......@@ -236,15 +236,11 @@ void testCheckpoints() {
context.createCheckpoint(checkpoint);
// Now continue the simulation
for (size_t i=0; i<25; i++){
integrator.step(1);
}
integrator.step(5);
// And try the same, starting from the checkpoint
newContext.loadCheckpoint(checkpoint);
for (size_t i=0; i<25; i++){
newIntegrator.step(1);
}
newIntegrator.step(5);
State state1 = context.getState(State::Positions | State::Velocities);
State state2 = newContext.getState(State::Positions | State::Velocities);
......
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