diff options
author | Thomas White <taw@physics.org> | 2017-10-18 11:58:50 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2017-10-18 11:58:50 +0200 |
commit | e18c025df6f5d8e2ecd0b0ac2b827e657fb53415 (patch) | |
tree | de8d92370d468f2e72094991ef8a09e40ff391bf /libcrystfel/src/mosflm.c | |
parent | 0821a7ddae7901b70ea5ae216c71fe41109fec55 (diff) |
Check that dirax,felix,mosflm or xds are available at the start
Avoids a confusing error message later.
Diffstat (limited to 'libcrystfel/src/mosflm.c')
-rw-r--r-- | libcrystfel/src/mosflm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libcrystfel/src/mosflm.c b/libcrystfel/src/mosflm.c index d4034e86..14cd9d96 100644 --- a/libcrystfel/src/mosflm.c +++ b/libcrystfel/src/mosflm.c @@ -821,6 +821,12 @@ void *mosflm_prepare(IndexingMethod *indm, UnitCell *cell) { struct mosflm_private *mp; + if ( mosflm_probe(cell) == NULL ) { + ERROR("Mosflm does not appear to run properly.\n"); + ERROR("Please check your Mosflm installation.\n"); + return NULL; + } + /* Flags that MOSFLM knows about */ *indm &= INDEXING_METHOD_MASK | INDEXING_USE_LATTICE_TYPE | INDEXING_USE_CELL_PARAMETERS; |