From b1d3b56a17ae4ccf1fd728209d5f4d66ed2cbfaa Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 2 Mar 2018 04:33:13 -0500 Subject: [PATCH] apply bugfix reported in issue #820 --- src/compute_chunk_atom.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/compute_chunk_atom.cpp b/src/compute_chunk_atom.cpp index aa1210caad..d08f462907 100644 --- a/src/compute_chunk_atom.cpp +++ b/src/compute_chunk_atom.cpp @@ -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];