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