Commit 2896df21 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

avoid that occasional neighbor lists requested from commands linger around for...

avoid that occasional neighbor lists requested from commands linger around for too long and thus cause segementation faults
parent d4f45f4f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -306,6 +306,10 @@ void CreateBonds::many()
              nadd_bonds,atom->nbonds);
    }
  }
  // trigger clearing the list of available neighbor list requests
  // and a full rebuild of them during the next run setup.
  // otherwise the request from this command may linger around.
  neighbor->init();
}

/* ---------------------------------------------------------------------- */
+4 −0
Original line number Diff line number Diff line
@@ -407,6 +407,10 @@ void DeleteAtoms::delete_overlap(int narg, char **arg)
      break;
    }
  }
  // trigger clearing the list of available neighbor list requests
  // and a full rebuild of them during the next run setup.
  // otherwise the request from this command may linger around.
  neighbor->init();
}

/* ----------------------------------------------------------------------