Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/config.cpp

    ra68d44 r486aa5  
    7272  file= new ifstream(filename);
    7373  if (file == NULL) {
    74     eLog() << Verbose(1) << "config file " << filename << " missing!" << endl;
     74    eLog() << Verbose(0) << "ERROR: config file " << filename << " missing!" << endl;
    7575    return;
    7676  }
     
    8787  // allocate buffer's 1st dimension
    8888  if (buffer != NULL) {
    89     eLog() << Verbose(1) << "FileBuffer->buffer is not NULL!" << endl;
     89    eLog() << Verbose(0) << "ERROR: FileBuffer->buffer is not NULL!" << endl;
    9090    return;
    9191  } else
     
    143143  if (LineMapping == NULL) {
    144144    eLog() << Verbose(0) << "map pointer is NULL: " << LineMapping << endl;
    145     performCriticalExit();
    146145    return;
    147146  }
     
    157156    if (CurrentLine+nr < NoLines)
    158157      LineMapping[CurrentLine+(nr++)] = runner->second;
    159     else {
     158    else
    160159      eLog() << Verbose(0) << "config::MapIonTypesInBuffer - NoAtoms is wrong: We are past the end of the file!" << endl;
    161       performCriticalExit();
    162     }
    163160  }
    164161}
     
    656653{
    657654  if (FileBuffer != NULL) {
    658     eLog() << Verbose(2) << "deleting present FileBuffer in PrepareFileBuffer()." << endl;
     655    eLog() << Verbose(1) << "WARNING: deleting present FileBuffer in PrepareFileBuffer()." << endl;
    659656    delete(FileBuffer);
    660657  }
     
    689686  if (MaxTypes == 0) {
    690687    eLog() << Verbose(0) << "There are no atoms according to MaxTypes in this config file." << endl;
    691     performCriticalExit();
    692688  } else {
    693689    // prescan number of ions per type
     
    708704    if (!ParseForParameter(verbose,FileBuffer, (const char*)name, 1, 1, 1, int_type, &value[0], 1, critical)) {
    709705      eLog() << Verbose(0) << "There are no atoms in the config file!" << endl;
    710       performCriticalExit();
    711706      return;
    712707    }
     
    852847  ifstream *file = new ifstream(filename);
    853848  if (file == NULL) {
    854     eLog() << Verbose(1) << "config file " << filename << " missing!" << endl;
     849    eLog() << Verbose(0) << "ERROR: config file " << filename << " missing!" << endl;
    855850    return;
    856851  }
     
    10561051
    10571052  // 2. parse the bond graph file if given
    1058   if (BG == NULL) {
    1059     BG = new BondGraph(IsAngstroem);
    1060     if (BG->LoadBondLengthTable(BondGraphFileName)) {
    1061       Log() << Verbose(0) << "Bond length table loaded successfully." << endl;
    1062     } else {
    1063       eLog() << Verbose(1) << "Bond length table loading failed." << endl;
    1064     }
     1053  BG = new BondGraph(IsAngstroem);
     1054  if (BG->LoadBondLengthTable(BondGraphFileName)) {
     1055    Log() << Verbose(0) << "Bond length table loaded successfully." << endl;
     1056  } else {
     1057    Log() << Verbose(0) << "Bond length table loading failed." << endl;
    10651058  }
    10661059
    10671060  // 3. parse the molecule in
    10681061  LoadMolecule(mol, FileBuffer, periode, FastParsing);
    1069   mol->SetNameFromFilename(filename);
    10701062  mol->ActiveFlag = true;
    1071   MolList->insert(mol);
    10721063
    10731064  // 4. dissect the molecule into connected subgraphs
    1074   // don't do this here ...
    1075   //MolList->DissectMoleculeIntoConnectedSubgraphs(mol,this);
     1065  MolList->DissectMoleculeIntoConnectedSubgraphs(mol,this);
    10761066
    10771067  delete(mol);
     
    10901080  ifstream *file = new ifstream(filename);
    10911081  if (file == NULL) {
    1092     eLog() << Verbose(1) << "config file " << filename << " missing!" << endl;
     1082    eLog() << Verbose(0) << "ERROR: config file " << filename << " missing!" << endl;
    10931083    return;
    10941084  }
Note: See TracChangeset for help on using the changeset viewer.