Correct assignment of centroidstressflag

This commit is contained in:
Richard Berger
2020-11-18 17:51:04 -05:00
parent 5691ec3dfd
commit 6d0c8e71de

View File

@ -416,10 +416,10 @@ void PairHybrid::flags()
for (m = 0; m < nstyles; m++) {
if (styles[m]->centroidstressflag == CENTROID_NOTAVAIL)
centroidstressflag == CENTROID_NOTAVAIL;
centroidstressflag = CENTROID_NOTAVAIL;
if (centroidstressflag == CENTROID_SAME &&
styles[m]->centroidstressflag == CENTROID_AVAIL)
centroidstressflag == CENTROID_AVAIL;
centroidstressflag = CENTROID_AVAIL;
}
}