aboutsummaryrefslogtreecommitdiff
path: root/src/get_hkl.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-02-18 16:57:08 +0100
committerThomas White <taw@physics.org>2019-03-11 16:49:36 +0100
commita9203226058dfd8ba35aa2e192ca51e030d3394a (patch)
tree8a8e6941a7a49f00ef2351c0c63d0876bce93aba /src/get_hkl.c
parenteaff24431149de7708b524e857b3c0807cb17c96 (diff)
get_hkl --reindex: Check that the user provides only one reindexing operation
Diffstat (limited to 'src/get_hkl.c')
-rw-r--r--src/get_hkl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/get_hkl.c b/src/get_hkl.c
index efd06c94..2a17aab5 100644
--- a/src/get_hkl.c
+++ b/src/get_hkl.c
@@ -580,6 +580,10 @@ int main(int argc, char *argv[])
if ( reindex_str != NULL ) {
reindex = parse_symmetry_operations(reindex_str);
if ( reindex == NULL ) return 1;
+ if ( num_equivs(reindex, NULL) != 1 ) {
+ ERROR("Please provide only ONE reindexing operation\n");
+ return 1;
+ }
set_symmetry_name(reindex, "Reindex");
}