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

This commit is contained in:
sjplimp
2016-07-14 19:43:50 +00:00
parent 7d2809dd09
commit b399e2e496

View File

@ -187,9 +187,11 @@ FixWallGran::FixWallGran(LAMMPS *lmp, int narg, char **arg) :
// initialize as if particle is not touching wall
int nlocal = atom->nlocal;
for (int i = 0; i < nlocal; i++)
shear[i][0] = shear[i][1] = shear[i][2] = 0.0;
if (history) {
int nlocal = atom->nlocal;
for (int i = 0; i < nlocal; i++)
shear[i][0] = shear[i][1] = shear[i][2] = 0.0;
}
time_origin = update->ntimestep;
}