Changeset a9b2a0a for molecuilder/src/molecule_graph.cpp
- Timestamp:
- Oct 27, 2009, 4:11:22 PM (16 years ago)
- Children:
- 069034
- Parents:
- 55a71b
- File:
-
- 1 edited
-
molecuilder/src/molecule_graph.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/molecule_graph.cpp
r55a71b ra9b2a0a 102 102 double distance, MinDistance, MaxDistance; 103 103 LinkedCell *LC = NULL; 104 LinkedNodes *List = NULL;105 LinkedNodes *OtherList = NULL;106 104 107 105 BondDistance = bonddistance; // * ((IsAngstroem) ? 1. : 1./AtomicLengthToAngstroem); … … 131 129 for (LC->n[1] = 0; LC->n[1] < LC->N[1]; LC->n[1]++) 132 130 for (LC->n[2] = 0; LC->n[2] < LC->N[2]; LC->n[2]++) { 133 List = LC->GetCurrentCell();131 const LinkedNodes *List = LC->GetCurrentCell(); 134 132 //*out << Verbose(2) << "Current cell is " << LC->n[0] << ", " << LC->n[1] << ", " << LC->n[2] << " with No. " << LC->index << " containing " << List->size() << " points." << endl; 135 133 if (List != NULL) { 136 for (LinkedNodes:: iterator Runner = List->begin(); Runner != List->end(); Runner++) {134 for (LinkedNodes::const_iterator Runner = List->begin(); Runner != List->end(); Runner++) { 137 135 Walker = AtomMap[(*Runner)->nr]; 138 136 //*out << Verbose(0) << "Current Atom is " << *Walker << "." << endl; … … 141 139 for (n[1] = -1; n[1] <= 1; n[1]++) 142 140 for (n[2] = -1; n[2] <= 1; n[2]++) { 143 OtherList = LC->GetRelativeToCurrentCell(n);141 const LinkedNodes *OtherList = LC->GetRelativeToCurrentCell(n); 144 142 //*out << Verbose(2) << "Current relative cell is " << LC->n[0] << ", " << LC->n[1] << ", " << LC->n[2] << " with No. " << LC->index << " containing " << List->size() << " points." << endl; 145 143 if (OtherList != NULL) { 146 for (LinkedNodes:: iterator OtherRunner = OtherList->begin(); OtherRunner != OtherList->end(); OtherRunner++) {144 for (LinkedNodes::const_iterator OtherRunner = OtherList->begin(); OtherRunner != OtherList->end(); OtherRunner++) { 147 145 if ((*OtherRunner)->nr > Walker->nr) { 148 146 OtherWalker = AtomMap[(*OtherRunner)->nr];
Note:
See TracChangeset
for help on using the changeset viewer.
