diff options
Diffstat (limited to 'libcrystfel/src/taketwo.c')
-rw-r--r-- | libcrystfel/src/taketwo.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |