change flag name in pair.h: cntratmstressflag -> centroidstressflag

This commit is contained in:
Donatas Surblys
2019-11-13 18:37:48 +09:00
parent 2d75e6b167
commit 6b94126f67
30 changed files with 37 additions and 37 deletions

View File

@ -43,7 +43,7 @@ PairHybrid::PairHybrid(LAMMPS *lmp) : Pair(lmp),
// assume pair hybrid always supports centroid atomic stress,
// so that cflag_atom gets set when needed
cntratmstressflag = 2;
centroidstressflag = 2;
}
/* ---------------------------------------------------------------------- */
@ -166,7 +166,7 @@ void PairHybrid::compute(int eflag, int vflag)
if (cvflag_atom) {
n = atom->nlocal;
if (force->newton_pair) n += atom->nghost;
if (styles[m]->cntratmstressflag & 2) {
if (styles[m]->centroidstressflag & 2) {
double **cvatom_substyle = styles[m]->cvatom;
for (i = 0; i < n; i++)
for (j = 0; j < 9; j++)
@ -384,7 +384,7 @@ void PairHybrid::flags()
if (styles[m]->dispersionflag) dispersionflag = 1;
if (styles[m]->tip4pflag) tip4pflag = 1;
if (styles[m]->compute_flag) compute_flag = 1;
cntratmstressflag |= styles[m]->cntratmstressflag;
centroidstressflag |= styles[m]->centroidstressflag;
}
init_svector();
}