alternate implementation of pair/only option (for KOKKOS and GPU)

This commit is contained in:
Axel Kohlmeyer
2020-12-17 22:39:36 -05:00
parent 79833f9b83
commit 96fa85f61c
6 changed files with 48 additions and 6 deletions

View File

@ -1715,7 +1715,10 @@ void Input::pair_style()
int match = 0;
if (style == force->pair_style) match = 1;
if (!match && lmp->suffix_enable) {
if (lmp->suffix)
if (lmp->suffixp)
if (style + "/" + lmp->suffixp == force->pair_style) match = 1;
if (lmp->suffix && !lmp->suffixp)
if (style + "/" + lmp->suffix == force->pair_style) match = 1;
if (lmp->suffix2)