use ev_init for kspace
This commit is contained in:
@ -365,9 +365,7 @@ void Ewald::compute(int eflag, int vflag)
|
||||
|
||||
// set energy/virial flags
|
||||
|
||||
if (eflag || vflag) ev_setup(eflag,vflag);
|
||||
else evflag = evflag_atom = eflag_global = vflag_global =
|
||||
eflag_atom = vflag_atom = 0;
|
||||
ev_init(eflag,vflag);
|
||||
|
||||
// if atom count has changed, update qsum and qsqsum
|
||||
|
||||
|
||||
Reference in New Issue
Block a user