make behavior of comparing cutoff and long-range coulomb independent of order

This commit is contained in:
Axel Kohlmeyer 2020-04-27 08:06:20 -04:00
parent 9a5b7141af
commit bc3a1187ae
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 1 additions and 1 deletions

View File

@ -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;