Ignore:
Timestamp:
Nov 23, 2009, 6:51:50 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
16f34d, 7d1ad9
Parents:
418117a
Message:

Fixing ticket #18.

  • each eLog() << Verbose(0) is now followed by performCriticalExit().
File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/config.cpp

    r418117a r3d4969  
    143143  if (LineMapping == NULL) {
    144144    eLog() << Verbose(0) << "map pointer is NULL: " << LineMapping << endl;
     145    performCriticalExit();
    145146    return;
    146147  }
     
    156157    if (CurrentLine+nr < NoLines)
    157158      LineMapping[CurrentLine+(nr++)] = runner->second;
    158     else
     159    else {
    159160      eLog() << Verbose(0) << "config::MapIonTypesInBuffer - NoAtoms is wrong: We are past the end of the file!" << endl;
     161      performCriticalExit();
     162    }
    160163  }
    161164}
     
    686689  if (MaxTypes == 0) {
    687690    eLog() << Verbose(0) << "There are no atoms according to MaxTypes in this config file." << endl;
     691    performCriticalExit();
    688692  } else {
    689693    // prescan number of ions per type
     
    704708    if (!ParseForParameter(verbose,FileBuffer, (const char*)name, 1, 1, 1, int_type, &value[0], 1, critical)) {
    705709      eLog() << Verbose(0) << "There are no atoms in the config file!" << endl;
     710      performCriticalExit();
    706711      return;
    707712    }
Note: See TracChangeset for help on using the changeset viewer.