aboutsummaryrefslogtreecommitdiff
path: root/src/check_hkl.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2015-01-20 16:10:04 +0100
committerThomas White <taw@physics.org>2015-01-20 16:10:04 +0100
commit38f81ac432e313ed451eceb80c3f36ba6f1008e8 (patch)
treed354c0adc18e53fc935310fe4681e80d949a3ff1 /src/check_hkl.c
parent15931c364e2ee96bcd545b33ef5bc0db9e52341f (diff)
Add informational messages when symmetry doesn't match for monoclinic point groups
Diffstat (limited to 'src/check_hkl.c')
-rw-r--r--src/check_hkl.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/check_hkl.c b/src/check_hkl.c
index 69ec34ef..0449c7a9 100644
--- a/src/check_hkl.c
+++ b/src/check_hkl.c
@@ -3,11 +3,11 @@
*
* Characterise reflection lists
*
- * Copyright © 2012-2014 Deutsches Elektronen-Synchrotron DESY,
+ * Copyright © 2012-2015 Deutsches Elektronen-Synchrotron DESY,
* a research centre of the Helmholtz Association.
*
* Authors:
- * 2010-2014 Thomas White <taw@physics.org>
+ * 2010-2015 Thomas White <taw@physics.org>
*
* This file is part of CrystFEL.
*
@@ -840,6 +840,10 @@ int main(int argc, char *argv[])
return 1;
}
cell = load_cell_from_file(cellfile);
+ if ( cell == NULL ) {
+ ERROR("Failed to load cell.\n");
+ return 1;
+ }
free(cellfile);
raw_list = read_reflections(file);
@@ -855,6 +859,11 @@ int main(int argc, char *argv[])
if ( check_list_symmetry(raw_list, sym) ) {
ERROR("The input reflection list does not appear to"
" have symmetry %s\n", symmetry_name(sym));
+ if ( cell_get_lattice_type(cell) == L_MONOCLINIC ) {
+ ERROR("You may need to specify the unique axis in your "
+ "point group. The default is unique axis c.\n");
+ ERROR("See 'man crystfel' for more details.\n");
+ }
return 1;
}