diff options
author | Thomas White <taw@physics.org> | 2013-11-29 15:57:22 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2013-11-29 15:57:22 +0100 |
commit | 15a538e5a0b66b590a8857b27e8e79d11d6174d9 (patch) | |
tree | a1887d4f4954f21d17194d3e5232bedfcac78fd3 /libcrystfel/src/geometry.c | |
parent | 72d7a79147603b798e92425ec6b83a469bd35843 (diff) |
RefList: Increase maximum index to 511
Diffstat (limited to 'libcrystfel/src/geometry.c')
-rw-r--r-- | libcrystfel/src/geometry.c | 11 |
1 files changed, 6 insertions, 5 deletions
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, |