From 33798dda6cce6c5d14df912ba11ff86fb4de0d40 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 7 Mar 2011 17:31:30 +0100 Subject: Remove hardcoded resolution limit in find_intersections() --- src/geometry.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/geometry.c') diff --git a/src/geometry.c b/src/geometry.c index f8b74148..2fc44445 100644 --- a/src/geometry.c +++ b/src/geometry.c @@ -248,8 +248,7 @@ RefList *find_intersections(struct image *image, UnitCell *cell, &bsx, &bsy, &bsz, &csx, &csy, &csz); - /* FIXME: Get this from image */ - mres = 1.0 / 8.0e-10; /* 8 Angstroms */ + mres = largest_q(image); hmax = mres / modulus(asx, asy, asz); kmax = mres / modulus(bsx, bsy, bsz); lmax = mres / modulus(csx, csy, csz); -- cgit v1.2.3