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

This commit is contained in:
sjplimp
2015-09-02 20:39:55 +00:00
parent 3f79c91279
commit 047be536bc
35 changed files with 236 additions and 104 deletions

View File

@ -301,6 +301,7 @@ void Group::assign(int narg, char **arg)
tagint start,stop,delta;
for (int iarg = 2; iarg < narg; iarg++) {
delta = 1;
if (strchr(arg[iarg],':')) {
ptr = strtok(arg[iarg],":");
start = force->tnumeric(FLERR,ptr);
@ -308,11 +309,11 @@ void Group::assign(int narg, char **arg)
stop = force->tnumeric(FLERR,ptr);
ptr = strtok(NULL,":");
if (ptr) delta = force->tnumeric(FLERR,ptr);
else delta = 1;
} else {
start = stop = force->tnumeric(FLERR,arg[iarg]);
delta = 1;
}
if (delta < 1)
error->all(FLERR,"Illegal range increment value");
// add to group if attribute matches value or sequence