avoid that occasional neighbor lists requested from commands linger around for too long and thus cause segementation faults

This commit is contained in:
Axel Kohlmeyer 2018-01-04 17:16:31 -05:00
parent d4f45f4f85
commit 2896df2140
2 changed files with 8 additions and 0 deletions

View File

@ -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();
}
/* ---------------------------------------------------------------------- */

View File

@ -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();
}
/* ----------------------------------------------------------------------