recognize any word starting with FP as FPRIME style table

This commit is contained in:
Axel Kohlmeyer 2016-10-19 09:05:25 -04:00
parent ccca642b3a
commit 86f5b51133
1 changed files with 1 additions and 1 deletions

View File

@ -578,7 +578,7 @@ void PairTable::param_extract(Table *tb, char *line)
tb->rlo = atof(word);
word = strtok(NULL," \t\n\r\f");
tb->rhi = atof(word);
} else if (strcmp(word,"FP") == 0) {
} else if (strncmp(word,"FP",2) == 0) {
tb->fpflag = 1;
word = strtok(NULL," \t\n\r\f");
tb->fplo = atof(word);