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