don't allow hybrid/overlay as hybrid substyle as well

This commit is contained in:
Axel Kohlmeyer 2018-10-04 12:18:01 +02:00
parent b481af51d6
commit c3abf13af1
1 changed files with 1 additions and 1 deletions

View File

@ -281,7 +281,7 @@ void PairHybrid::settings(int narg, char **arg)
iarg = 0;
nstyles = 0;
while (iarg < narg) {
if (strcmp(arg[iarg],"hybrid") == 0)
if (strncmp(arg[iarg],"hybrid",6) == 0)
error->all(FLERR,"Pair style hybrid cannot have hybrid as an argument");
if (strcmp(arg[iarg],"none") == 0)
error->all(FLERR,"Pair style hybrid cannot have none as an argument");