forked from lijiext/lammps
correct a logic bug in fix wall/gran/region
This commit is contained in:
parent
cb982f2f28
commit
a88136c3f5
|
@ -279,7 +279,7 @@ void FixWallGranRegion::update_contacts(int i, int nc)
|
|||
while (iold < ncontact[i]) {
|
||||
for (m = 0; m < nc; m++)
|
||||
if (region->contact[m].iwall == walls[i][iold]) break;
|
||||
if (m < nc) {
|
||||
if (m >= nc) {
|
||||
ilast = ncontact[i]-1;
|
||||
for (j = 0; j < sheardim; j++)
|
||||
shearmany[i][iold][j] = shearmany[i][ilast][j];
|
||||
|
|
Loading…
Reference in New Issue