forked from lijiext/lammps
avoid that occasional neighbor lists requested from commands linger around for too long and thus cause segementation faults
This commit is contained in:
parent
d4f45f4f85
commit
2896df2140
|
@ -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();
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue