fix issues with multiple uses of create_bonds command

This commit is contained in:
Plimpton
2021-02-10 16:21:25 -07:00
parent 2beef8580a
commit cb7e68644f
3 changed files with 13 additions and 1 deletions

View File

@ -225,6 +225,8 @@ void NeighRequest::copy_request(NeighRequest *other, int skipflag)
int i,j;
int ntypes = atom->ntypes;
skip = other->skip;
if (other->iskip) {
iskip = new int[ntypes+1];
for (i = 1; i <= ntypes; i++)