From 1eda20d71d4129dca977882992de377ebd2182ae Mon Sep 17 00:00:00 2001 From: sjplimp Date: Mon, 30 Nov 2009 16:01:30 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3453 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/compute_stress_atom.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compute_stress_atom.cpp b/src/compute_stress_atom.cpp index cdb13f3116..63e5dc8b2c 100644 --- a/src/compute_stress_atom.cpp +++ b/src/compute_stress_atom.cpp @@ -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];