From bc3a1187ae913d75a129306c2a496e5d4edac296 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Mon, 27 Apr 2020 08:06:20 -0400 Subject: [PATCH] make behavior of comparing cutoff and long-range coulomb independent of order --- src/pair_hybrid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pair_hybrid.cpp b/src/pair_hybrid.cpp index 4d8d6f6902..bbaa311819 100644 --- a/src/pair_hybrid.cpp +++ b/src/pair_hybrid.cpp @@ -1007,7 +1007,7 @@ void *PairHybrid::extract(const char *str, int &dim) for (int m = 0; m < nstyles; m++) { ptr = styles[m]->extract(str,dim); if (ptr && strcmp(str,"cut_coul") == 0) { - if (cutptr && dim != couldim) + if (couldim != -1 && dim != couldim) error->all(FLERR, "Coulomb styles of pair hybrid sub-styles do not match"); double *p_newvalue = (double *) ptr;