Changeset 08b88b for molecuilder/src/molecule_graph.cpp
- Timestamp:
- Nov 3, 2009, 2:34:02 PM (16 years ago)
- Children:
- c1b4a4
- Parents:
- 5f9f8b
- git-author:
- Frederik Heber <heber@…> (11/03/09 14:27:15)
- git-committer:
- Frederik Heber <heber@…> (11/03/09 14:34:02)
- File:
-
- 1 edited
-
molecuilder/src/molecule_graph.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/molecule_graph.cpp
r5f9f8b r08b88b 114 114 *out << Verbose(0) << "Begin of CreateAdjacencyList." << endl; 115 115 // remove every bond from the list 116 if ((first->next != last) && (last->previous != first)) { // there are bonds present 117 cleanup(first, last); 116 bond *Binder = NULL; 117 while (last->previous != first) { 118 Binder = last->previous; 119 Binder->leftatom->UnregisterBond(Binder); 120 Binder->rightatom->UnregisterBond(Binder); 121 removewithoutcheck(Binder); 118 122 } 119 123 120 124 // count atoms in molecule = dimension of matrix (also give each unique name and continuous numbering) 121 125 CountAtoms(out); 122 *out << Verbose(1) << "AtomCount " << AtomCount << " ." << endl;126 *out << Verbose(1) << "AtomCount " << AtomCount << " and bonddistance is " << bonddistance << "." << endl; 123 127 124 128 if ((AtomCount > 1) && (bonddistance > 1.)) { 129 *out << Verbose(2) << "Creating Linked Cell structure ... " << endl; 125 130 LC = new LinkedCell(this, bonddistance); 126 131 127 132 // create a list to map Tesselpoint::nr to atom * 133 *out << Verbose(2) << "Creating TesselPoint to atom map ... " << endl; 128 134 AtomMap = Calloc<atom *> (AtomCount, "molecule::CreateAdjacencyList - **AtomCount"); 129 135 Walker = start; … … 134 140 135 141 // 3a. go through every cell 142 *out << Verbose(2) << "Celling ... " << endl; 136 143 for (LC->n[0] = 0; LC->n[0] < LC->N[0]; LC->n[0]++) 137 144 for (LC->n[1] = 0; LC->n[1] < LC->N[1]; LC->n[1]++) … … 175 182 176 183 // correct bond degree by comparing valence and bond degree 184 *out << Verbose(2) << "Correcting bond degree ... " << endl; 177 185 CorrectBondDegree(out); 178 186
Note:
See TracChangeset
for help on using the changeset viewer.
