Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/parser.cpp

    re359a8 re138de  
    159159  if (input == NULL) {
    160160    eLog() << Verbose(0) << endl << "Unable to open " << name << ", is the directory correct?" << endl;
    161     performCriticalExit();
    162161    return false;
    163162  }
     
    180179  //Log() << Verbose(0) << line.str() << endl;
    181180  //Log() << Verbose(0) << "ColumnCounter[" << MatrixNr << "]: " << ColumnCounter[MatrixNr] << "." << endl;
    182   if (ColumnCounter[MatrixNr] == 0) {
     181  if (ColumnCounter[MatrixNr] == 0)
    183182    eLog() << Verbose(0) << "ColumnCounter[" << MatrixNr << "]: " << ColumnCounter[MatrixNr] << " from file " << name << ", this is probably an error!" << endl;
    184     performCriticalExit();
    185   }
    186183 
    187184  // scan rest for number of rows/lines
     
    196193  }
    197194  //Log() << Verbose(0) << "RowCounter[" << MatrixNr << "]: " << RowCounter[MatrixNr] << " from file " << name << "." << endl;
    198   if (RowCounter[MatrixNr] == 0) {
     195  if (RowCounter[MatrixNr] == 0)
    199196    eLog() << Verbose(0) << "RowCounter[" << MatrixNr << "]: " << RowCounter[MatrixNr] << " from file " << name << ", this is probably an error!" << endl;
    200     performCriticalExit();
    201   }
    202197
    203198  // allocate matrix if it's not zero dimension in one direction
     
    231226    }
    232227  } else {
    233     eLog() << Verbose(1) << "Matrix nr. " << MatrixNr << " has column and row count of (" << ColumnCounter[MatrixNr] << "," << RowCounter[MatrixNr] << "), could not allocate nor parse!" << endl;
     228    eLog() << Verbose(0) << "ERROR: Matrix nr. " << MatrixNr << " has column and row count of (" << ColumnCounter[MatrixNr] << "," << RowCounter[MatrixNr] << "), could not allocate nor parse!" << endl;
    234229  }
    235230  input.close();
     
    433428              if (m > RowCounter[ KeySets.OrderSet[Order][CurrentFragment] ]) {
    434429                eLog() << Verbose(0) << "In fragment No. " << KeySets.OrderSet[Order][CurrentFragment]   << " current force index " << m << " is greater than " << RowCounter[ KeySets.OrderSet[Order][CurrentFragment] ] << "!" << endl;
    435                 performCriticalExit();
    436430                return false;
    437431              }
     
    477471    if (output == NULL) {
    478472      eLog() << Verbose(0) << "Unable to open output energy file " << line.str() << "!" << endl;
    479       performCriticalExit();
    480473      return false;
    481474    }
     
    507500  if (output == NULL) {
    508501    eLog() << Verbose(0) << "Unable to open output matrix file " << line.str() << "!" << endl;
    509     performCriticalExit();
    510502    return false;
    511503  }
     
    664656      if (j > RowCounter[MatrixCounter]) {
    665657        eLog() << Verbose(0) << "Current force index " << j << " is greater than " << RowCounter[MatrixCounter] << "!" << endl;
    666         performCriticalExit();
    667658        return false;
    668659      }
     
    802793      if (j > RowCounter[MatrixCounter]) {
    803794        eLog() << Verbose(0) << "Current hessian index " << j << " is greater than " << RowCounter[MatrixCounter] << ", where i=" << i << ", Order=" << Order << ", l=" << l << " and FragmentNr=" << FragmentNr << "!" << endl;
    804         performCriticalExit();
    805795        return false;
    806796      }
     
    810800          if (k > ColumnCounter[MatrixCounter]) {
    811801            eLog() << Verbose(0) << "Current hessian index " << k << " is greater than " << ColumnCounter[MatrixCounter] << ", where m=" << m << ", j=" << j << ", i=" << i << ", Order=" << Order << ", l=" << l << " and FragmentNr=" << FragmentNr << "!" << endl;
    812             performCriticalExit();
    813802            return false;
    814803          }
     
    863852              if (m > RowCounter[ KeySets.OrderSet[Order][CurrentFragment] ]) {
    864853                eLog() << Verbose(0) << "In fragment No. " << KeySets.OrderSet[Order][CurrentFragment]   << " current row index " << m << " is greater than " << RowCounter[ KeySets.OrderSet[Order][CurrentFragment] ] << "!" << endl;
    865                 performCriticalExit();
    866854                return false;
    867855              }
     
    881869                  if (n > ColumnCounter[ KeySets.OrderSet[Order][CurrentFragment] ]) {
    882870                    eLog() << Verbose(0) << "In fragment No. " << KeySets.OrderSet[Order][CurrentFragment]   << " current column index " << n << " is greater than " << ColumnCounter[ KeySets.OrderSet[Order][CurrentFragment] ] << "!" << endl;
    883                     performCriticalExit();
    884871                    return false;
    885872                  }
Note: See TracChangeset for help on using the changeset viewer.