change virial_atom to virial_peratom

This commit is contained in:
Plimpton
2021-01-21 12:00:16 -07:00
parent 6e3b9307a4
commit 2c1b6adce3
8 changed files with 12 additions and 31 deletions

View File

@ -222,7 +222,7 @@ void ComputeStressAtom::compute_peratom()
Fix **fix = modify->fix;
int nfix = modify->nfix;
for (int ifix = 0; ifix < nfix; ifix++)
if (fix[i]->virial_atom_flag && fix[ifix]->virial_flag) {
if (fix[i]->virial_peratom_flag && fix[ifix]->virial_flag) {
double **vatom = modify->fix[ifix]->vatom;
if (vatom)
for (i = 0; i < nlocal; i++)