/[escript]/branches/diaplayground/ripley/src/Brick.cpp
ViewVC logotype

Diff of /branches/diaplayground/ripley/src/Brick.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4819 by caltinay, Tue Apr 1 03:50:23 2014 UTC revision 4827 by sshaw, Wed Apr 2 07:00:15 2014 UTC
# Line 3326  int Brick::findNode(const double *coords Line 3326  int Brick::findNode(const double *coords
3326      double x = coords[0] - m_origin[0];      double x = coords[0] - m_origin[0];
3327      double y = coords[1] - m_origin[1];      double y = coords[1] - m_origin[1];
3328      double z = coords[2] - m_origin[2];      double z = coords[2] - m_origin[2];
3329        
3330        //check if the point is even inside the domain
3331        if (x < 0 || y < 0 || z < 0
3332                || x > m_length[0] || y > m_length[1] || z > m_length[2])
3333            return NOT_MINE;
3334            
3335      // distance in elements      // distance in elements
3336      int ex = (int) floor(x / m_dx[0]);      int ex = (int) floor(x / m_dx[0]);
3337      int ey = (int) floor(y / m_dx[1]);      int ey = (int) floor(y / m_dx[1]);

Legend:
Removed from v.4819  
changed lines
  Added in v.4827

  ViewVC Help
Powered by ViewVC 1.1.26