Unverified Commit b685a0a7 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

need to use fabs() when computing deltas when checking image flags for consistency

parent c4fd658e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -763,9 +763,9 @@ void Domain::image_check()
        continue;
      }

      delx = unwrap[i][0] - unwrap[k][0];
      dely = unwrap[i][1] - unwrap[k][1];
      delz = unwrap[i][2] - unwrap[k][2];
      delx = fabs(unwrap[i][0] - unwrap[k][0]);
      dely = fabs(unwrap[i][1] - unwrap[k][1]);
      delz = fabs(unwrap[i][2] - unwrap[k][2]);

      if (xperiodic && delx > xprd_half) flag = 1;
      if (yperiodic && dely > yprd_half) flag = 1;