Replace a few more 2s with VIRIAL_FDOTR

This commit is contained in:
Richard Berger
2020-11-16 16:36:06 -05:00
parent f6a1352be3
commit 35035189e6
8 changed files with 8 additions and 8 deletions

View File

@ -76,7 +76,7 @@ void DihedralCharmmKokkos<DeviceType>::compute(int eflag_in, int vflag_in)
// insure pair->ev_tally() will use 1-4 virial contribution
if (weightflag && vflag_global == 2)
if (weightflag && vflag_global == VIRIAL_FDOTR)
force->pair->vflag_either = force->pair->vflag_global = 1;
// reallocate per-atom arrays if necessary

View File

@ -63,7 +63,7 @@ void BondQuartic::compute(int eflag, int vflag)
// insure pair->ev_tally() will use 1-4 virial contribution
if (vflag_global == 2)
if (vflag_global == VIRIAL_FDOTR)
force->pair->vflag_either = force->pair->vflag_global = 1;
double **cutsq = force->pair->cutsq;

View File

@ -79,7 +79,7 @@ void DihedralCharmm::compute(int eflag, int vflag)
// insure pair->ev_tally() will use 1-4 virial contribution
if (weightflag && vflag_global == 2)
if (weightflag && vflag_global == VIRIAL_FDOTR)
force->pair->vflag_either = force->pair->vflag_global = 1;
double **x = atom->x;

View File

@ -82,7 +82,7 @@ void DihedralCharmmfsw::compute(int eflag, int vflag)
// insure pair->ev_tally() will use 1-4 virial contribution
if (weightflag && vflag_global == 2)
if (weightflag && vflag_global == VIRIAL_FDOTR)
force->pair->vflag_either = force->pair->vflag_global = 1;
double **x = atom->x;

View File

@ -91,7 +91,7 @@ void DihedralCharmmIntel::compute(int eflag, int vflag,
// insure pair->ev_tally() will use 1-4 virial contribution
if (weightflag && vflag_global == 2)
if (weightflag && vflag_global == VIRIAL_FDOTR)
force->pair->vflag_either = force->pair->vflag_global = 1;
if (evflag) {

View File

@ -72,7 +72,7 @@ void AngleCosineBuck6d::compute(int eflag, int vflag)
// insure pair->ev_tally() will use 1-3 virial contribution
if (vflag_global == 2)
if (vflag_global == VIRIAL_FDOTR)
force->pair->vflag_either = force->pair->vflag_global = 1;
double **x = atom->x;

View File

@ -45,7 +45,7 @@ void BondQuarticOMP::compute(int eflag, int vflag)
// insure pair->ev_tally() will use 1-4 virial contribution
if (vflag_global == 2)
if (vflag_global == VIRIAL_FDOTR)
force->pair->vflag_either = force->pair->vflag_global = 1;
const int nall = atom->nlocal + atom->nghost;

View File

@ -49,7 +49,7 @@ void DihedralCharmmOMP::compute(int eflag, int vflag)
// insure pair->ev_tally() will use 1-4 virial contribution
if (weightflag && vflag_global == 2)
if (weightflag && vflag_global == VIRIAL_FDOTR)
force->pair->vflag_either = force->pair->vflag_global = 1;
const int nall = atom->nlocal + atom->nghost;