Ignore:
Timestamp:
Nov 4, 2009, 5:34:05 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
5f1d021
Parents:
c1b76e
Message:

Extension to the periodic boundary case for analysis_correlation.cpp

other stuff:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/molecule_graph.cpp

    rc1b76e r20895b  
    221221int molecule::CorrectBondDegree(ofstream *out) const
    222222{
    223   int No = 0;
     223  int No = 0, OldNo = -1;
    224224
    225225  if (BondCount != 0) {
    226226    *out << Verbose(1) << "Correcting Bond degree of each bond ... " << endl;
    227227    do {
     228      OldNo = No;
    228229      No = SumPerAtom(&atom::CorrectBondDegree, out);
    229     } while (No);
     230    } while (OldNo != No);
    230231    *out << " done." << endl;
    231232  } else {
     
    418419  if (!DFS.BackStepping) { // coming from (8) want to go to (3)
    419420    // (9) remove all from stack till Walker (including), these and Root form a component
    420     DFS.AtomStack->Output(out);
     421    //DFS.AtomStack->Output(out);
    421422    mol->SetNextComponentNumber(DFS.Root, DFS.ComponentNumber);
    422423    *out << Verbose(3) << "(9) Root[" << DFS.Root->Name << "]'s Component is " << DFS.ComponentNumber << "." << endl;
     
    881882  InitializeBFSAccounting(out, BFS, AtomCount);
    882883
    883   *out << Verbose(1) << "Back edge list - ";
    884   BackEdgeStack->Output(out);
     884  //*out << Verbose(1) << "Back edge list - ";
     885  //BackEdgeStack->Output(out);
    885886
    886887  *out << Verbose(1) << "Analysing cycles ... " << endl;
Note: See TracChangeset for help on using the changeset viewer.