diff options
author | Thomas White <taw@physics.org> | 2016-10-19 14:37:11 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2016-10-19 14:37:11 +0200 |
commit | 9211939e4cd21748fadbda519438e027ce654644 (patch) | |
tree | 72bbe6a05a4af39daa778ac29b6f6f03554be117 /libcrystfel | |
parent | f40d82f45579c0d23d577351acc23347d08d26e6 (diff) |
Fix maximum index determination
Diffstat (limited to 'libcrystfel')
-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; |