aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-12-12 16:14:59 +0100
committerThomas White <taw@physics.org>2018-02-27 17:12:42 +0100
commit55a8a64893ad2a6d303e4f33271e830a4f3da8f9 (patch)
treefababcc46dc5a44de2a81b8e20dc567421c6276b
parent8b320a3c58e8644c32646f79fdc1c65116ea4a0e (diff)
Add an assertion
-rw-r--r--libcrystfel/src/geometry.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcrystfel/src/geometry.c b/libcrystfel/src/geometry.c
index 20084476..25751abb 100644
--- a/libcrystfel/src/geometry.c
+++ b/libcrystfel/src/geometry.c
@@ -524,6 +524,7 @@ static double do_integral(double q2, double zl, double R,
FILE *fh = NULL;
assert(R*R < q2);
+ assert(R > 0.0);
/* Range over which P is different from zero */
k0 = (R*R - q2)/(2.0*(zl+R));