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

@ -196,6 +196,11 @@ FixGPU::FixGPU(LAMMPS *lmp, int narg, char **arg) :
if (pair_only_flag) {
lmp->suffixp = lmp->suffix;
lmp->suffix = nullptr;
} else {
if (lmp->suffixp) {
lmp->suffix = lmp->suffixp;
lmp->suffixp = nullptr;
}
}
// pass params to GPU library