Changes in src/parser.cpp [244a84:5e8f82]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/parser.cpp
r244a84 r5e8f82 6 6 7 7 // ======================================= INCLUDES ========================================== 8 9 #include <cstring>10 8 11 9 #include "helpers.hpp" … … 158 156 159 157 input.open(name, ios::in); 160 //Log() << Verbose( 1) << "Opening " << name << " ... " << input << endl;158 //Log() << Verbose(0) << "Opening " << name << " ... " << input << endl; 161 159 if (input == NULL) { 162 160 eLog() << Verbose(1) << endl << "Unable to open " << name << ", is the directory correct?" << endl; … … 181 179 } 182 180 //Log() << Verbose(0) << line.str() << endl; 183 //Log() << Verbose( 1) << "ColumnCounter[" << MatrixNr << "]: " << ColumnCounter[MatrixNr] << "." << endl;181 //Log() << Verbose(0) << "ColumnCounter[" << MatrixNr << "]: " << ColumnCounter[MatrixNr] << "." << endl; 184 182 if (ColumnCounter[MatrixNr] == 0) { 185 183 eLog() << Verbose(0) << "ColumnCounter[" << MatrixNr << "]: " << ColumnCounter[MatrixNr] << " from file " << name << ", this is probably an error!" << endl; … … 197 195 } 198 196 } 199 //Log() << Verbose( 1) << "RowCounter[" << MatrixNr << "]: " << RowCounter[MatrixNr] << " from file " << name << "." << endl;197 //Log() << Verbose(0) << "RowCounter[" << MatrixNr << "]: " << RowCounter[MatrixNr] << " from file " << name << "." << endl; 200 198 if (RowCounter[MatrixNr] == 0) { 201 199 eLog() << Verbose(0) << "RowCounter[" << MatrixNr << "]: " << RowCounter[MatrixNr] << " from file " << name << ", this is probably an error!" << endl; … … 220 218 input.getline(filename, 1023); 221 219 stringstream lines(filename); 222 //Log() << Verbose( 2) << "Matrix at level " << j << ":";// << filename << endl;220 //Log() << Verbose(0) << "Matrix at level " << j << ":";// << filename << endl; 223 221 for(int k=skipcolumns;k--;) 224 222 lines >> filename; 225 223 for(int k=0;(k<ColumnCounter[MatrixNr]) && (!lines.eof());k++) { 226 224 lines >> Matrix[MatrixNr][j][k]; 227 //Log() << Verbose( 1) << " " << setprecision(2) << Matrix[MatrixNr][j][k] << endl;225 //Log() << Verbose(0) << " " << setprecision(2) << Matrix[MatrixNr][j][k];; 228 226 } 227 //Log() << Verbose(0) << endl; 229 228 Matrix[MatrixNr][ RowCounter[MatrixNr] ] = Malloc<double>(ColumnCounter[MatrixNr], "MatrixContainer::ParseMatrix: *Matrix[RowCounter[MatrixNr]][]"); 230 229 for(int j=ColumnCounter[MatrixNr];j--;)
Note:
See TracChangeset
for help on using the changeset viewer.