Ignore:
Timestamp:
Mar 3, 2010, 2:53:07 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
328418d, 3d575e
Parents:
bd506d
git-author:
Frederik Heber <heber@…> (03/03/10 14:46:13)
git-committer:
Frederik Heber <heber@…> (03/03/10 14:53:07)
Message:

Default molecule name can be set via command line, BUGFIX: molecule::DepthFirstSearchAnalysis() seg'faulted on no atoms.

Allow '-I' on empty configs:

new case 'X' for setting default molecule name:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/moleculelist.cpp

    rbd506d ra83171  
    786786
    787787  // 1. dissect the molecule into connected subgraphs
    788   configuration->BG->ConstructBondGraph(mol);
     788  if (configuration->BG->ConstructBondGraph(mol)) {
     789    delete (mol);
     790    eLog() << Verbose(1) << "There are no bonds." << endl;
     791    return;
     792  }
    789793
    790794  // 2. scan for connected subgraphs
     
    793797  Subgraphs = mol->DepthFirstSearchAnalysis(BackEdgeStack);
    794798  delete(BackEdgeStack);
     799  if ((Subgraphs == NULL) || (Subgraphs->next == NULL)) {
     800    delete (mol);
     801    eLog() << Verbose(1) << "There are no atoms." << endl;
     802    return;
     803  }
    795804
    796805  // 3. dissect (the following construct is needed to have the atoms not in the order of the DFS, but in
Note: See TracChangeset for help on using the changeset viewer.