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

This commit is contained in:
sjplimp 2007-03-21 14:32:25 +00:00
parent c51298f366
commit eb06c494d3
1 changed files with 4 additions and 3 deletions

View File

@ -151,9 +151,10 @@ void Group::assign(int narg, char **arg)
// style = logical condition
} else if (strcmp(arg[2],"<") == 0 || strcmp(arg[2],">") == 0 ||
strcmp(arg[2],"<=") == 0 || strcmp(arg[2],">=") == 0 ||
strcmp(arg[2],"<>") == 0) {
} else if (narg >= 3 &&
(strcmp(arg[2],"<") == 0 || strcmp(arg[2],">") == 0 ||
strcmp(arg[2],"<=") == 0 || strcmp(arg[2],">=") == 0 ||
strcmp(arg[2],"<>") == 0)) {
if (narg < 4 || narg > 5) error->all("Illegal group command");
int category,condition,bound1,bound2;