Changes in src/molecule_graph.cpp [952f38:bf3817]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/molecule_graph.cpp ¶
r952f38 rbf3817 6 6 */ 7 7 8 // include config.h 8 9 #ifdef HAVE_CONFIG_H 9 10 #include <config.h> … … 184 185 //Log() << Verbose(1) << "Checking distance " << OtherWalker->x.PeriodicDistanceSquared(&(Walker->x), cell_size) << " against typical bond length of " << bonddistance*bonddistance << "." << endl; 185 186 (BG->*minmaxdistance)(Walker, OtherWalker, MinDistance, MaxDistance, IsAngstroem); 186 const double distance = domain.periodicDistanceSquared(OtherWalker-> x,Walker->x);187 const double distance = domain.periodicDistanceSquared(OtherWalker->getPosition(),Walker->getPosition()); 187 188 const bool status = (distance <= MaxDistance * MaxDistance) && (distance >= MinDistance * MinDistance); 188 189 // Log() << Verbose(1) << "MinDistance is " << MinDistance << " and MaxDistance is " << MaxDistance << "." << endl; … … 737 738 OtherAtom = (*Runner)->GetOtherAtom(Walker); 738 739 #ifdef ADDHYDROGEN 739 if (OtherAtom-> type->Z != 1) {740 if (OtherAtom->getType()->Z != 1) { 740 741 #endif 741 742 DoLog(2) && (Log() << Verbose(2) << "Current OtherAtom is: " << OtherAtom->getName() << " for bond " << *(*Runner) << "." << endl);
Note:
See TracChangeset
for help on using the changeset viewer.