Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/molecule_graph.cpp

    r35b698 r014475  
    2424#include "Helpers/fast_functions.hpp"
    2525#include "Helpers/Assert.hpp"
     26#include "Matrix.hpp"
     27#include "Box.hpp"
    2628
    2729
     
    121123  LinkedCell *LC = NULL;
    122124  bool free_BG = false;
    123   double * const cell_size = World::getInstance().getDomain();
     125  Box &domain = World::getInstance().getDomain();
    124126
    125127  if (BG == NULL) {
     
    178180                          //Log() << Verbose(1) << "Checking distance " << OtherWalker->x.PeriodicDistanceSquared(&(Walker->x), cell_size) << " against typical bond length of " << bonddistance*bonddistance << "." << endl;
    179181                          (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);
    181183                          const bool status = (distance <= MaxDistance * MaxDistance) && (distance >= MinDistance * MinDistance);
    182184//                          Log() << Verbose(1) << "MinDistance is " << MinDistance << " and MaxDistance is " << MaxDistance << "." << endl;
Note: See TracChangeset for help on using the changeset viewer.