aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2013-08-08 11:49:59 +0200
committerThomas White <taw@physics.org>2013-08-08 11:49:59 +0200
commit5414ff57a37bc7b079a50b1c032d34e2341452f9 (patch)
tree4af23c9cb101cce03799a31d1c52244bdc5b28ad
parent4c0971b30a4982c8b4a3be4b6599639ecb1b6695 (diff)
Show determinant when complaining about a non-integer matrix result
-rw-r--r--libcrystfel/src/integer_matrix.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcrystfel/src/integer_matrix.c b/libcrystfel/src/integer_matrix.c
index 96159cc6..018f0ca6 100644
--- a/libcrystfel/src/integer_matrix.c
+++ b/libcrystfel/src/integer_matrix.c
@@ -353,7 +353,9 @@ IntegerMatrix *intmat_inverse(const IntegerMatrix *m)
det = intmat_det(m);
if ( (det != +1) && (det != -1) ) {
- fprintf(stderr, "Inverse matrix not an integer matrix.\n");
+ fprintf(stderr,
+ "Inverse matrix not an integer matrix (det = %i).\n",
+ det);
return NULL;
}