diff --git a/miscmaths.cc b/miscmaths.cc index 82021f777d5166586200460a273ae3c58cb4b6cc..dc27aec2ba76a0b9f0e0d983fb762e6cd05e4328 100644 --- a/miscmaths.cc +++ b/miscmaths.cc @@ -143,7 +143,10 @@ namespace MISCMATHS { cmax--; RowVector newrow(cmax); - while (!fs.eof()) { + cerr << "FOUND " << cmax << " COLUMNS!" << endl; // MJTEST + + do { + cerr << "READING LINE" << endl; // MJTEST getline(fs,cline); cline += " "; // force extra entry in parsing istrstream ss(cline.c_str()); @@ -161,7 +164,7 @@ namespace MISCMATHS { if (rcount>1) mat = mat & newrow; else mat = newrow; - } + } while (!fs.eof()); mat.Release(); return mat;