aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-10-07 16:27:22 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:39 +0100
commit1ad18276acfa02a31a80e62d889f023d19242a9e (patch)
treea9e616b908560d58677b5bcbb0705d4732134d9e
parent3f7f7b74dba93b7ac105071927664d7b1f2c31de (diff)
Total divergence is made up from rocking half the divergence in opposite directions
-rw-r--r--src/geometry.c4
1 files changed, 2 insertions, 2 deletions
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"? */