git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3453 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp 2009-11-30 16:01:30 +00:00
parent b161bf5bd9
commit 1eda20d71d
1 changed files with 3 additions and 3 deletions

View File

@ -163,9 +163,9 @@ void ComputeStressAtom::compute_peratom()
// add in per-atom contributions from relevant fixes
if (fixflag) {
for (int i = 0; i < modify->nfix; i++)
if (modify->fix[i]->virial_flag) {
double **vatom = modify->fix[i]->vatom;
for (int ifix = 0; ifix < modify->nfix; ifix++)
if (modify->fix[ifix]->virial_flag) {
double **vatom = modify->fix[ifix]->vatom;
for (i = 0; i < nlocal; i++)
for (j = 0; j < 6; j++)
stress[i][j] += vatom[i][j];