better contain bondlist code

This commit is contained in:
jrgissing
2022-02-13 15:06:10 -05:00
parent 5c1486661c
commit 2c0a9cf572

View File

@ -437,11 +437,13 @@ void Replicate::command(int narg, char **arg)
// let's repurpose the old atom class to allow atom->map for all atoms
// tag and x for the whole system (before replication) stored in 'old'
m = 0;
old->nlocal = 0;
while (m < size_buf_all) m += old_avec->unpack_restart(&buf_all[m],old);
old->map_init();
old->map_set();
if (bondlist_flag) {
m = 0;
old->nlocal = 0;
while (m < size_buf_all) m += old_avec->unpack_restart(&buf_all[m],old);
old->map_init();
old->map_set();
}
for (ix = 0; ix < nx; ix++) {
for (iy = 0; iy < ny; iy++) {