From 9211939e4cd21748fadbda519438e027ce654644 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 19 Oct 2016 14:37:11 +0200 Subject: Fix maximum index determination --- libcrystfel/src/taketwo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libcrystfel/src/taketwo.c') diff --git a/libcrystfel/src/taketwo.c b/libcrystfel/src/taketwo.c index c84a2d8d..f87446fd 100644 --- a/libcrystfel/src/taketwo.c +++ b/libcrystfel/src/taketwo.c @@ -770,9 +770,9 @@ static int gen_theoretical_vecs(UnitCell *cell, struct rvec **cell_vecs, cell_get_parameters(cell, &a, &b, &c, &alpha, &beta, &gamma); /* find maximum Miller (h, k, l) indices for a given resolution */ - h_max = MAX_RECIP_DISTANCE / a + 1; - k_max = MAX_RECIP_DISTANCE / b + 1; - l_max = MAX_RECIP_DISTANCE / c + 1; + h_max = MAX_RECIP_DISTANCE * a; + k_max = MAX_RECIP_DISTANCE * b; + l_max = MAX_RECIP_DISTANCE * c; int h, k, l; int count = 0; -- cgit v1.2.3