aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/dirax.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-10-18 11:58:50 +0200
committerThomas White <taw@physics.org>2017-10-18 11:58:50 +0200
commite18c025df6f5d8e2ecd0b0ac2b827e657fb53415 (patch)
treede8d92370d468f2e72094991ef8a09e40ff391bf /libcrystfel/src/dirax.c
parent0821a7ddae7901b70ea5ae216c71fe41109fec55 (diff)
Check that dirax,felix,mosflm or xds are available at the start
Avoids a confusing error message later.
Diffstat (limited to 'libcrystfel/src/dirax.c')
-rw-r--r--libcrystfel/src/dirax.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libcrystfel/src/dirax.c b/libcrystfel/src/dirax.c
index 1dacd021..488eb7db 100644
--- a/libcrystfel/src/dirax.c
+++ b/libcrystfel/src/dirax.c
@@ -604,6 +604,12 @@ void *dirax_prepare(IndexingMethod *indm, UnitCell *cell)
{
struct dirax_private *dp;
+ if ( dirax_probe(cell) == NULL ) {
+ ERROR("DirAx does not appear to run properly.\n");
+ ERROR("Please check your DirAx installation.\n");
+ return NULL;
+ }
+
/* Flags that DirAx knows about */
*indm &= INDEXING_METHOD_MASK;