improve pair_coeff error message for pair styles derived from PairHybrid
This commit is contained in:
@ -60,7 +60,7 @@ void PairHybridOverlayKokkos::coeff(int narg, char **arg)
|
||||
int none = 0;
|
||||
if (m == nstyles) {
|
||||
if (strcmp(arg[2],"none") == 0) none = 1;
|
||||
else error->all(FLERR,"Pair coeff for hybrid has invalid style");
|
||||
else error->all(FLERR,"Pair coeff for hybrid has invalid style: {}", arg[2]);
|
||||
}
|
||||
|
||||
// move 1st/2nd args to 2nd/3rd args
|
||||
|
||||
@ -60,7 +60,7 @@ void PairHybridOverlay::coeff(int narg, char **arg)
|
||||
int none = 0;
|
||||
if (m == nstyles) {
|
||||
if (strcmp(arg[2],"none") == 0) none = 1;
|
||||
else error->all(FLERR,"Pair coeff for hybrid has invalid style");
|
||||
else error->all(FLERR,"Pair coeff for hybrid has invalid style: {}", arg[2]);
|
||||
}
|
||||
|
||||
// move 1st/2nd args to 2nd/3rd args
|
||||
|
||||
@ -516,7 +516,7 @@ void PairHybridScaled::coeff(int narg, char **arg)
|
||||
if (strcmp(arg[2], "none") == 0)
|
||||
none = 1;
|
||||
else
|
||||
error->all(FLERR, "Pair coeff for hybrid has invalid style");
|
||||
error->all(FLERR, "Pair coeff for hybrid has invalid style: {}", arg[2]);
|
||||
}
|
||||
|
||||
// move 1st/2nd args to 2nd/3rd args
|
||||
|
||||
Reference in New Issue
Block a user