Commit b1d3b56a authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

apply bugfix reported in issue #820

parent eadac154
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1809,13 +1809,13 @@ void ComputeChunkAtom::atom2binsphere()
    }
    yremap = x[i][1];
    if (periodicity[1]) {
      if (xremap < boxlo[1]) yremap += prd[1];
      if (xremap >= boxhi[1]) yremap -= prd[1];
      if (yremap < boxlo[1]) yremap += prd[1];
      if (yremap >= boxhi[1]) yremap -= prd[1];
    }
    zremap = x[i][2];
    if (periodicity[2]) {
      if (xremap < boxlo[2]) zremap += prd[2];
      if (xremap >= boxhi[2]) zremap -= prd[2];
      if (zremap < boxlo[2]) zremap += prd[2];
      if (zremap >= boxhi[2]) zremap -= prd[2];
    }

    dx = xremap - sorigin[0];