aboutsummaryrefslogtreecommitdiff
path: root/src/get_hkl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/get_hkl.c')
-rw-r--r--src/get_hkl.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/get_hkl.c b/src/get_hkl.c
index f1b4f9f3..1a1d058a 100644
--- a/src/get_hkl.c
+++ b/src/get_hkl.c
@@ -112,6 +112,11 @@ static ReflItemList *twin_reflections(double *ref, ReflItemList *items,
new = new_items();
+ if ( num_general_equivs(holo) < num_general_equivs(mero) ) {
+ ERROR("%s is not a subgroup of %s!\n", mero, holo);
+ return NULL;
+ }
+
for ( i=0; i<num_items(items); i++ ) {
double mean;
@@ -185,6 +190,11 @@ static ReflItemList *expand_reflections(double *ref, ReflItemList *items,
new = new_items();
+ if ( num_general_equivs(target) > num_general_equivs(initial) ) {
+ ERROR("%s is not a subgroup of %s!\n", initial, target);
+ return NULL;
+ }
+
for ( i=0; i<num_items(items); i++ ) {
struct refl_item *it;