Changeset 1f591b for molecuilder/src/molecule_graph.cpp
- Timestamp:
- Apr 13, 2010, 1:22:42 PM (16 years ago)
- Children:
- e7ea64
- Parents:
- 0f55b2
- File:
-
- 1 edited
-
molecuilder/src/molecule_graph.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/molecule_graph.cpp
r0f55b2 r1f591b 165 165 //Log() << Verbose(1) << "Checking distance " << OtherWalker->x.PeriodicDistanceSquared(&(Walker->x), cell_size) << " against typical bond length of " << bonddistance*bonddistance << "." << endl; 166 166 (BG->*minmaxdistance)(Walker, OtherWalker, MinDistance, MaxDistance, IsAngstroem); 167 const double distance = OtherWalker->x.PeriodicDistanceSquared( &(Walker->x), cell_size);167 const double distance = OtherWalker->x.PeriodicDistanceSquared((Walker->x), cell_size); 168 168 const bool status = (distance <= MaxDistance * MaxDistance) && (distance >= MinDistance * MinDistance); 169 169 if ((OtherWalker->father->nr > Walker->father->nr) && (status)) { // create bond if distance is smaller
Note:
See TracChangeset
for help on using the changeset viewer.
