Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/parser.cpp

    r5e8f82 r244a84  
    66
    77// ======================================= INCLUDES ==========================================
     8
     9#include <cstring>
    810
    911#include "helpers.hpp"
     
    156158
    157159  input.open(name, ios::in);
    158   //Log() << Verbose(0) << "Opening " << name << " ... "  << input << endl;
     160  //Log() << Verbose(1) << "Opening " << name << " ... "  << input << endl;
    159161  if (input == NULL) {
    160162    eLog() << Verbose(1) << endl << "Unable to open " << name << ", is the directory correct?" << endl;
     
    179181  }
    180182  //Log() << Verbose(0) << line.str() << endl;
    181   //Log() << Verbose(0) << "ColumnCounter[" << MatrixNr << "]: " << ColumnCounter[MatrixNr] << "." << endl;
     183  //Log() << Verbose(1) << "ColumnCounter[" << MatrixNr << "]: " << ColumnCounter[MatrixNr] << "." << endl;
    182184  if (ColumnCounter[MatrixNr] == 0) {
    183185    eLog() << Verbose(0) << "ColumnCounter[" << MatrixNr << "]: " << ColumnCounter[MatrixNr] << " from file " << name << ", this is probably an error!" << endl;
     
    195197    }
    196198  }
    197   //Log() << Verbose(0) << "RowCounter[" << MatrixNr << "]: " << RowCounter[MatrixNr] << " from file " << name << "." << endl;
     199  //Log() << Verbose(1) << "RowCounter[" << MatrixNr << "]: " << RowCounter[MatrixNr] << " from file " << name << "." << endl;
    198200  if (RowCounter[MatrixNr] == 0) {
    199201    eLog() << Verbose(0) << "RowCounter[" << MatrixNr << "]: " << RowCounter[MatrixNr] << " from file " << name << ", this is probably an error!" << endl;
     
    218220      input.getline(filename, 1023);
    219221      stringstream lines(filename);
    220       //Log() << Verbose(0) << "Matrix at level " << j << ":";// << filename << endl;
     222      //Log() << Verbose(2) << "Matrix at level " << j << ":";// << filename << endl;
    221223      for(int k=skipcolumns;k--;)
    222224        lines >> filename;
    223225      for(int k=0;(k<ColumnCounter[MatrixNr]) && (!lines.eof());k++) {
    224226        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;
    226228      }
    227       //Log() << Verbose(0) << endl;
    228229      Matrix[MatrixNr][ RowCounter[MatrixNr] ] = Malloc<double>(ColumnCounter[MatrixNr], "MatrixContainer::ParseMatrix: *Matrix[RowCounter[MatrixNr]][]");
    229230      for(int j=ColumnCounter[MatrixNr];j--;)
Note: See TracChangeset for help on using the changeset viewer.