aboutsummaryrefslogtreecommitdiff
path: root/src/compare_hkl.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-05-25 17:51:04 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:27 +0100
commit42438f091125bbb0025ab27b97f7caedfd66447c (patch)
tree19398705a809cc78743c0fcb194f8f12ae68e8f2 /src/compare_hkl.c
parent192b3acc937155a1851c7c8547d912dcdf5ff759 (diff)
compare_hkl: Don't crash if scale factor can't be found
Diffstat (limited to 'src/compare_hkl.c')
-rw-r--r--src/compare_hkl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compare_hkl.c b/src/compare_hkl.c
index 1eae1849..4ab2dc70 100644
--- a/src/compare_hkl.c
+++ b/src/compare_hkl.c
@@ -21,6 +21,7 @@
#include <unistd.h>
#include <getopt.h>
#include <assert.h>
+#include <gsl/gsl_errno.h>
#include "utils.h"
#include "statistics.h"
@@ -440,6 +441,8 @@ int main(int argc, char *argv[])
}
reflist_free(ratio);
+ gsl_set_error_handler_off();
+
STATUS("%i reflections in '%s' had I < 3.0*sigma(I)\n", rej1, afile);
STATUS("%i reflections in '%s' had I < 3.0*sigma(I)\n", rej2, bfile);