forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@8794 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
7599fe233d
commit
6367c8b601
|
@ -379,7 +379,8 @@ void AngleTable::read_table(Table *tb, char *file, char *keyword)
|
|||
error->one(FLERR,"Did not find keyword in table file");
|
||||
if (strspn(line," \t\n") == strlen(line)) continue; // blank line
|
||||
if (line[0] == '#') continue; // comment
|
||||
if (strstr(line,keyword) == line) break; // matching keyword
|
||||
char *word = strtok(line," \t\n\r");
|
||||
if (strcmp(word,keyword) == 0) break; // matching keyword
|
||||
fgets(line,MAXLINE,fp); // no match, skip section
|
||||
param_extract(tb,line);
|
||||
fgets(line,MAXLINE,fp);
|
||||
|
|
|
@ -302,7 +302,8 @@ void BondTable::read_table(Table *tb, char *file, char *keyword)
|
|||
error->one(FLERR,"Did not find keyword in table file");
|
||||
if (strspn(line," \t\n") == strlen(line)) continue; // blank line
|
||||
if (line[0] == '#') continue; // comment
|
||||
if (strstr(line,keyword) == line) break; // matching keyword
|
||||
char *word = strtok(line," \t\n\r");
|
||||
if (strcmp(word,keyword) == 0) break; // matching keyword
|
||||
fgets(line,MAXLINE,fp); // no match, skip section
|
||||
param_extract(tb,line);
|
||||
fgets(line,MAXLINE,fp);
|
||||
|
|
|
@ -703,7 +703,8 @@ void DihedralTable::read_table(Table *tb, char *file, char *keyword)
|
|||
}
|
||||
if (strspn(line," \t\n\r") == strlen(line)) continue; // blank line
|
||||
if (line[0] == '#') continue; // comment
|
||||
if (strstr(line,keyword) == line) break; // matching keyword
|
||||
char *word = strtok(line," \t\n\r");
|
||||
if (strcmp(word,keyword) == 0) break; // matching keyword
|
||||
fgets(line,MAXLINE,fp); // no match, skip section
|
||||
param_extract(tb,line);
|
||||
fgets(line,MAXLINE,fp);
|
||||
|
|
Loading…
Reference in New Issue