Fix bug in next_dvector
It did not ignore comment lines
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user