more changes

This commit is contained in:
Plimpton
2021-01-21 12:16:39 -07:00
parent 2c1b6adce3
commit 20650dc7ce
5 changed files with 15 additions and 11 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_peratom_flag && fix[ifix]->virial_flag) {
if (fix[i]->virial_peratom_flag && fix[ifix]->thermo_virial) {
double **vatom = modify->fix[ifix]->vatom;
if (vatom)
for (i = 0; i < nlocal; i++)