allow for pre-timestepping comm with engine, e.g. for force eval

This commit is contained in:
Steve Plimpton
2022-04-06 16:38:58 -06:00
parent 4bd28cf920
commit 207b34ae12

View File

@ -628,7 +628,6 @@ void MDIEngine::mdi_md()
update->endstep = update->laststep = update->ntimestep + update->nsteps;
lmp->init();
update->integrate->setup(1);
// engine is now at @INIT_MD node
// any @ command from driver will start the simulation
@ -639,6 +638,8 @@ void MDIEngine::mdi_md()
// run one step at a time forever
// driver triggers exit with @ command other than @COORDS,@FORCES,@ENDSTEP
update->integrate->setup(1);
timer->init();
timer->barrier_start();
@ -752,7 +753,6 @@ void MDIEngine::mdi_optg()
update->max_eval = std::numeric_limits<int>::max();
lmp->init();
update->minimize->setup();
// engine is now at @INIT_OPTG node
// any @ command from driver will start the minimization
@ -768,6 +768,8 @@ void MDIEngine::mdi_optg()
// if driver triggers exit on step that is not multiple of thermo output
// then energy/virial not computed, and <PE, <STRESS will fail
update->minimize->setup();
timer->init();
timer->barrier_start();