git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@12315 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2014-08-14 19:25:12 +00:00
parent b05729b908
commit 18a1c57b56
5 changed files with 25 additions and 15 deletions

View File

@ -205,11 +205,13 @@ void ImproperHybrid::settings(int narg, char **arg)
keywords = new char*[nstyles];
// allocate each sub-style and call its settings() with subset of args
// allocate uses suffix, but don't store suffix version in keywords,
// else syntax in coeff() will not match
// define subset of args for a sub-style by skipping numeric args
// one exception is 1st arg of style "table", which is non-numeric
// need a better way to skip these exceptions
int sflag;
int dummy;
nstyles = 0;
i = 0;
@ -224,8 +226,8 @@ void ImproperHybrid::settings(int narg, char **arg)
if (strcmp(arg[i],"none") == 0)
error->all(FLERR,"Improper style hybrid cannot have none as an argument");
styles[nstyles] = force->new_improper(arg[i],1,sflag);
force->store_style(keywords[nstyles],arg[i],sflag);
styles[nstyles] = force->new_improper(arg[i],1,dummy);
force->store_style(keywords[nstyles],arg[i],0);
istyle = i;
if (strcmp(arg[i],"table") == 0) i++;