correct a logic bug in fix wall/gran/region

This commit is contained in:
Axel Kohlmeyer 2017-02-17 17:58:24 -05:00
parent cb982f2f28
commit a88136c3f5
1 changed files with 1 additions and 1 deletions

View File

@ -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];