forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@2672 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
f9ba681c5e
commit
4b187034de
|
@ -559,9 +559,15 @@ void groups(FILE *fp)
|
|||
int n;
|
||||
char *name;
|
||||
|
||||
// use count to not change restart format with deleted groups
|
||||
// remove this on next major release
|
||||
|
||||
int count = 0;
|
||||
for (int i = 0; i < MAX_GROUP; i++) {
|
||||
name = read_char(fp);
|
||||
delete [] name;
|
||||
count++;
|
||||
if (count == ngroup) break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue