Changes in src/molecule_graph.cpp [014475:35b698]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/molecule_graph.cpp
r014475 r35b698 24 24 #include "Helpers/fast_functions.hpp" 25 25 #include "Helpers/Assert.hpp" 26 #include "Matrix.hpp"27 #include "Box.hpp"28 26 29 27 … … 123 121 LinkedCell *LC = NULL; 124 122 bool free_BG = false; 125 Box &domain= World::getInstance().getDomain();123 double * const cell_size = World::getInstance().getDomain(); 126 124 127 125 if (BG == NULL) { … … 180 178 //Log() << Verbose(1) << "Checking distance " << OtherWalker->x.PeriodicDistanceSquared(&(Walker->x), cell_size) << " against typical bond length of " << bonddistance*bonddistance << "." << endl; 181 179 (BG->*minmaxdistance)(Walker, OtherWalker, MinDistance, MaxDistance, IsAngstroem); 182 const double distance = domain.periodicDistanceSquared(OtherWalker->x,Walker->x);180 const double distance = OtherWalker->x.PeriodicDistanceSquared(Walker->x,cell_size); 183 181 const bool status = (distance <= MaxDistance * MaxDistance) && (distance >= MinDistance * MinDistance); 184 182 // Log() << Verbose(1) << "MinDistance is " << MinDistance << " and MaxDistance is " << MaxDistance << "." << endl;
Note:
See TracChangeset
for help on using the changeset viewer.