allow to revert the pair/only setting

This commit is contained in:
Axel Kohlmeyer
2020-12-17 22:59:12 -05:00
parent 96fa85f61c
commit 959f67962d
2 changed files with 13 additions and 0 deletions

View File

@ -467,6 +467,14 @@ void KokkosLMP::accelerator(int narg, char **arg)
exchange_comm_classic = forward_comm_classic = reverse_comm_classic = 1;
exchange_comm_on_host = forward_comm_on_host = reverse_comm_on_host = 0;
} else {
// restore settings to regular suffix use, if previously, pair/only was used.
if (lmp->suffixp) {
delete[] lmp->suffix;
lmp->suffix = lmp->suffixp;
lmp->suffixp = nullptr;
// TODO: restore communication settings
}
}
}