git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@12315 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -204,11 +204,13 @@ void AngleHybrid::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;
|
||||
|
||||
@ -222,8 +224,8 @@ void AngleHybrid::settings(int narg, char **arg)
|
||||
if (strcmp(arg[i],"none") == 0)
|
||||
error->all(FLERR,"Angle style hybrid cannot have none as an argument");
|
||||
|
||||
styles[nstyles] = force->new_angle(arg[i],1,sflag);
|
||||
force->store_style(keywords[nstyles],arg[i],sflag);
|
||||
styles[nstyles] = force->new_angle(arg[i],1,dummy);
|
||||
force->store_style(keywords[nstyles],arg[i],0);
|
||||
|
||||
istyle = i;
|
||||
if (strcmp(arg[i],"table") == 0) i++;
|
||||
|
||||
Reference in New Issue
Block a user