Make use of ENERGY_ and VIRIAL_ constants

This commit is contained in:
Richard Berger
2020-11-16 15:33:15 -05:00
parent 746655ed2e
commit 251dcdf8a2
21 changed files with 108 additions and 106 deletions

View File

@ -189,12 +189,12 @@ void Fix::ev_setup(int eflag, int vflag)
evflag = 1;
eflag_either = eflag;
eflag_global = eflag % 2;
eflag_atom = eflag / 2;
eflag_global = eflag % 2; // TODO
eflag_atom = eflag / 2; // TODO
vflag_either = vflag;
vflag_global = vflag % 4;
vflag_atom = vflag / 4;
vflag_global = vflag % 4; // TODO
vflag_atom = vflag / 4; // TODO
// reallocate per-atom arrays if necessary
@ -250,8 +250,8 @@ void Fix::v_setup(int vflag)
evflag = 1;
vflag_global = vflag % 4;
vflag_atom = vflag / 4;
vflag_global = vflag % 4; // TODO
vflag_atom = vflag / 4; // TODO
// reallocate per-atom array if necessary