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