aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/symmetry.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2016-11-04 13:35:15 +0100
committerThomas White <taw@physics.org>2016-11-04 13:35:15 +0100
commitc4a9925905abc1108b33057240b17913de2e671a (patch)
tree7157d9cc6d4e716d257f0438feeb5398f3a025bb /libcrystfel/src/symmetry.c
parent775bbc2d0081978f05d9fa35175bd82cf34c3c40 (diff)
Add (more) warnings about unique axes
Diffstat (limited to 'libcrystfel/src/symmetry.c')
-rw-r--r--libcrystfel/src/symmetry.c21
1 files changed, 18 insertions, 3 deletions
diff --git a/libcrystfel/src/symmetry.c b/libcrystfel/src/symmetry.c
index 503078a7..d675fb30 100644
--- a/libcrystfel/src/symmetry.c
+++ b/libcrystfel/src/symmetry.c
@@ -3,12 +3,12 @@
*
* Symmetry
*
- * Copyright © 2012-2014 Deutsches Elektronen-Synchrotron DESY,
+ * Copyright © 2012-2016 Deutsches Elektronen-Synchrotron DESY,
* a research centre of the Helmholtz Association.
*
* Authors:
- * 2010-2014 Thomas White <taw@physics.org>
- * 2014 Kenneth Beyerlein <kenneth.beyerlein@desy.de>
+ * 2010-2014,2016 Thomas White <taw@physics.org>
+ * 2014 Kenneth Beyerlein <kenneth.beyerlein@desy.de>
*
* This file is part of CrystFEL.
*
@@ -1088,6 +1088,21 @@ SymOpList *get_pointgroup(const char *sym)
}
+void pointgroup_warning(const char *sym)
+{
+ if ( (strcmp(sym, "m") == 0)
+ || (strcmp(sym, "2/m") == 0)
+ || (strcmp(sym, "2") == 0) )
+ {
+ ERROR("WARNING: You have specified a monoclinic point group "
+ "without a unique axis. The default unique axis is 'c'. "
+ "If you want unique axis b, append '_uab' to your point "
+ "group.\n");
+ }
+
+}
+
+
static void do_op(const IntegerMatrix *op,
signed int h, signed int k, signed int l,
signed int *he, signed int *ke, signed int *le)