From 1ad18276acfa02a31a80e62d889f023d19242a9e Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 7 Oct 2011 16:27:22 +0200 Subject: Total divergence is made up from rocking half the divergence in opposite directions --- src/geometry.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/geometry.c b/src/geometry.c index ef6ec338..bb946120 100644 --- a/src/geometry.c +++ b/src/geometry.c @@ -165,8 +165,8 @@ static Reflection *check_reflection(struct image *image, RefList *reflections, ds = sqrt(ds_sq); /* Calculate excitation errors */ - rlow = excitation_error(xl, yl, zl, ds, klow, -divergence, tt); - rhigh = excitation_error(xl, yl, zl, ds, khigh, +divergence, tt); + rlow = excitation_error(xl, yl, zl, ds, klow, -divergence/2.0, tt); + rhigh = excitation_error(xl, yl, zl, ds, khigh, +divergence/2.0, tt); /* Is the reciprocal lattice point close to either extreme of * the sphere, maybe just outside the "Ewald volume"? */ -- cgit v1.2.3