better contain bondlist code
This commit is contained in:
@ -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
|
// 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'
|
// tag and x for the whole system (before replication) stored in 'old'
|
||||||
|
|
||||||
m = 0;
|
if (bondlist_flag) {
|
||||||
old->nlocal = 0;
|
m = 0;
|
||||||
while (m < size_buf_all) m += old_avec->unpack_restart(&buf_all[m],old);
|
old->nlocal = 0;
|
||||||
old->map_init();
|
while (m < size_buf_all) m += old_avec->unpack_restart(&buf_all[m],old);
|
||||||
old->map_set();
|
old->map_init();
|
||||||
|
old->map_set();
|
||||||
|
}
|
||||||
|
|
||||||
for (ix = 0; ix < nx; ix++) {
|
for (ix = 0; ix < nx; ix++) {
|
||||||
for (iy = 0; iy < ny; iy++) {
|
for (iy = 0; iy < ny; iy++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user