Fix bug in next_dvector

It did not ignore comment lines
This commit is contained in:
Richard Berger 2020-06-04 16:24:48 -04:00
parent 6c41c2f69d
commit e5263e502d
No known key found for this signature in database
GPG Key ID: A9E83994E0BA0CAB
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ char *TextFileReader::next_line(int nparams) {
void TextFileReader::next_dvector(int n, double * list) {
int i = 0;
while (i < n) {
char *ptr = fgets(line, MAXLINE, fp);
char *ptr = next_line();
if (ptr == nullptr) {
// EOF