aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-02-26 14:09:29 +0100
committerThomas White <taw@physics.org>2018-02-27 17:12:42 +0100
commit2544056df3dedfbf6b1780aaec13fbeb3b2242c3 (patch)
tree4ae4e57ba5347026e9b210d0fe2428ba37700e43
parent1a25445aea5e028c6a6f2cefc8946d9fc4c04a0f (diff)
Replace debugging code with an assert()
-rw-r--r--libcrystfel/src/geometry.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/libcrystfel/src/geometry.c b/libcrystfel/src/geometry.c
index b9fe8ea4..9ae6d96f 100644
--- a/libcrystfel/src/geometry.c
+++ b/libcrystfel/src/geometry.c
@@ -706,13 +706,7 @@ static void ginn_spectrum_partialities(Crystal *cryst)
set_partiality(refl, total/norm);
set_lorentz(refl, 1.0);
- if ( total > 2.0*norm ) {
- /* Error! */
- STATUS("total > 2*norm!\n");
- do_integral(q2, zl, R, lambda, sig, NULL);
- do_integral(q2, -0.5*q2*lambda, R, lambda, sig, NULL);
- abort();
- }
+ assert(total <= 2.0*norm);
}
}