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

This commit is contained in:
sjplimp 2013-08-21 14:59:02 +00:00
parent 8acf52d4e5
commit e33d03ec2c
1 changed files with 5 additions and 2 deletions

View File

@ -2127,11 +2127,14 @@ void FixRigidSmall::readfile(int which, double **array, int *inbody)
values[0] = strtok(buf," \t\n\r\f");
for (j = 1; j < nwords; j++)
values[j] = strtok(NULL," \t\n\r\f");
id = atoi(values[0]);
if (id <= 0 || id > maxmol)
error->all(FLERR,"Invalid rigid body ID in fix rigid/small file");
if (hash->find(id) == hash->end()) continue;
if (hash->find(id) == hash->end()) {
buf = next + 1;
continue;
}
id = (*hash)[id];
inbody[id] = 1;