Changes in src/parser.cpp [e359a8:e138de]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/parser.cpp
re359a8 re138de 159 159 if (input == NULL) { 160 160 eLog() << Verbose(0) << endl << "Unable to open " << name << ", is the directory correct?" << endl; 161 performCriticalExit();162 161 return false; 163 162 } … … 180 179 //Log() << Verbose(0) << line.str() << endl; 181 180 //Log() << Verbose(0) << "ColumnCounter[" << MatrixNr << "]: " << ColumnCounter[MatrixNr] << "." << endl; 182 if (ColumnCounter[MatrixNr] == 0) {181 if (ColumnCounter[MatrixNr] == 0) 183 182 eLog() << Verbose(0) << "ColumnCounter[" << MatrixNr << "]: " << ColumnCounter[MatrixNr] << " from file " << name << ", this is probably an error!" << endl; 184 performCriticalExit();185 }186 183 187 184 // scan rest for number of rows/lines … … 196 193 } 197 194 //Log() << Verbose(0) << "RowCounter[" << MatrixNr << "]: " << RowCounter[MatrixNr] << " from file " << name << "." << endl; 198 if (RowCounter[MatrixNr] == 0) {195 if (RowCounter[MatrixNr] == 0) 199 196 eLog() << Verbose(0) << "RowCounter[" << MatrixNr << "]: " << RowCounter[MatrixNr] << " from file " << name << ", this is probably an error!" << endl; 200 performCriticalExit();201 }202 197 203 198 // allocate matrix if it's not zero dimension in one direction … … 231 226 } 232 227 } 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; 234 229 } 235 230 input.close(); … … 433 428 if (m > RowCounter[ KeySets.OrderSet[Order][CurrentFragment] ]) { 434 429 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();436 430 return false; 437 431 } … … 477 471 if (output == NULL) { 478 472 eLog() << Verbose(0) << "Unable to open output energy file " << line.str() << "!" << endl; 479 performCriticalExit();480 473 return false; 481 474 } … … 507 500 if (output == NULL) { 508 501 eLog() << Verbose(0) << "Unable to open output matrix file " << line.str() << "!" << endl; 509 performCriticalExit();510 502 return false; 511 503 } … … 664 656 if (j > RowCounter[MatrixCounter]) { 665 657 eLog() << Verbose(0) << "Current force index " << j << " is greater than " << RowCounter[MatrixCounter] << "!" << endl; 666 performCriticalExit();667 658 return false; 668 659 } … … 802 793 if (j > RowCounter[MatrixCounter]) { 803 794 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();805 795 return false; 806 796 } … … 810 800 if (k > ColumnCounter[MatrixCounter]) { 811 801 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();813 802 return false; 814 803 } … … 863 852 if (m > RowCounter[ KeySets.OrderSet[Order][CurrentFragment] ]) { 864 853 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();866 854 return false; 867 855 } … … 881 869 if (n > ColumnCounter[ KeySets.OrderSet[Order][CurrentFragment] ]) { 882 870 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();884 871 return false; 885 872 }
Note:
See TracChangeset
for help on using the changeset viewer.