Undo more changes to make values match new constants

This commit is contained in:
Richard Berger
2020-11-16 11:52:42 -05:00
parent 5ce536f2e9
commit 746655ed2e
2 changed files with 3 additions and 3 deletions

View File

@ -126,7 +126,7 @@ void ComputeCentroidStressAtom::init()
// check if pair styles support centroid atom stress
if (pairflag && force->pair)
if (force->pair->centroidstressflag == CENTROID_NOTAVAIL)
if (force->pair->centroidstressflag & CENTROID_NOTAVAIL)
error->all(FLERR, "Pair style does not support compute centroid/stress/atom");
}
@ -178,7 +178,7 @@ void ComputeCentroidStressAtom::compute_peratom()
// per-atom virial and per-atom centroid virial are the same for two-body
// many-body pair styles not yet implemented
if (pairflag && force->pair && force->pair->compute_flag) {
if (force->pair->centroidstressflag == CENTROID_AVAIL) {
if (force->pair->centroidstressflag & CENTROID_AVAIL) {
double **cvatom = force->pair->cvatom;
for (i = 0; i < npair; i++)
for (j = 0; j < 9; j++)