aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/felix.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/felix.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/felix.c')
-rw-r--r--libcrystfel/src/felix.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libcrystfel/src/felix.c b/libcrystfel/src/felix.c
index 5036ff74..cf7a38e8 100644
--- a/libcrystfel/src/felix.c
+++ b/libcrystfel/src/felix.c
@@ -653,6 +653,12 @@ void *felix_prepare(IndexingMethod *indm, UnitCell *cell, const char *options)
{
struct felix_private *gp;
+ if ( felix_probe(cell) == NULL ) {
+ ERROR("Felix does not appear to run properly.\n");
+ ERROR("Please check your Felix installation.\n");
+ return NULL;
+ }
+
if ( cell == NULL ) {
ERROR("Felix needs a unit cell.\n");
return NULL;