From 15a538e5a0b66b590a8857b27e8e79d11d6174d9 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 29 Nov 2013 15:57:22 +0100 Subject: RefList: Increase maximum index to 511 --- libcrystfel/src/geometry.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'libcrystfel/src/geometry.c') diff --git a/libcrystfel/src/geometry.c b/libcrystfel/src/geometry.c index 9ca6262c..e9712b0a 100644 --- a/libcrystfel/src/geometry.c +++ b/libcrystfel/src/geometry.c @@ -264,12 +264,13 @@ RefList *find_intersections(struct image *image, Crystal *cryst) kmax = mres * modulus(bx, by, bz); lmax = mres * modulus(cx, cy, cz); - if ( (hmax >= 256) || (kmax >= 256) || (lmax >= 256) ) { - ERROR("Unit cell is stupidly large.\n"); + if ( (hmax >= 512) || (kmax >= 512) || (lmax >= 512) ) { + ERROR("Unit cell is too large - will only integrate reflections" + " up to 511th order.\n"); cell_print(cell); - if ( hmax >= 256 ) hmax = 255; - if ( kmax >= 256 ) kmax = 255; - if ( lmax >= 256 ) lmax = 255; + if ( hmax >= 512 ) hmax = 511; + if ( kmax >= 512 ) kmax = 511; + if ( lmax >= 512 ) lmax = 511; } cell_get_reciprocal(cell, &asx, &asy, &asz, -- cgit v1.2.3