use ev_init for fixes

This commit is contained in:
Sebastian Hütter
2019-03-13 17:50:10 +01:00
parent 06a57dd659
commit 17c81295c2
4 changed files with 7 additions and 6 deletions

View File

@ -141,8 +141,7 @@ void FixExternal::post_force(int vflag)
bigint ntimestep = update->ntimestep;
int eflag = eflag_caller;
if (eflag || vflag) ev_setup(eflag,vflag);
else evflag = 0;
ev_init(eflag,vflag);
// invoke the callback in driver program
// it will fill fexternal with forces