Merge pull request #1365 from martok/meamc-evclear

Consolidate clearing of eflags and vflags
This commit is contained in:
Axel Kohlmeyer
2019-03-25 13:14:59 -04:00
committed by GitHub
580 changed files with 625 additions and 1446 deletions

View File

@ -68,8 +68,7 @@ void DihedralQuadratic::compute(int eflag, int vflag)
double s2,cx,cy,cz,cmag,dx,phi,si,siinv,sin2;
edihedral = 0.0;
if (eflag || vflag) ev_setup(eflag,vflag);
else evflag = 0;
ev_init(eflag,vflag);
double **x = atom->x;
double **f = atom->f;