From 92e5aae7bb0e8ef9a6e8ec213b1f6963559fc9b7 Mon Sep 17 00:00:00 2001 From: sjplimp Date: Wed, 13 Jul 2016 14:43:40 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@15298 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/GRANULAR/fix_wall_gran.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/GRANULAR/fix_wall_gran.cpp b/src/GRANULAR/fix_wall_gran.cpp index b49b2043b2..07c1e93765 100644 --- a/src/GRANULAR/fix_wall_gran.cpp +++ b/src/GRANULAR/fix_wall_gran.cpp @@ -248,6 +248,9 @@ void FixWallGran::post_force(int vflag) { double vwall[3],dx,dy,dz,del1,del2,delxy,delr,rsq; + shearupdate = 1; + if (update->setupflag) shearupdate = 0; + // set position of wall to initial settings and velocity to 0.0 // if wiggle or shear, set wall position and velocity accordingly @@ -283,9 +286,6 @@ void FixWallGran::post_force(int vflag) int *mask = atom->mask; int nlocal = atom->nlocal; - shearupdate = 1; - if (update->setupflag) shearupdate = 0; - for (int i = 0; i < nlocal; i++) { if (mask[i] & groupbit) {