diff options
author | Thomas White <taw@physics.org> | 2010-10-06 18:43:49 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:01 +0100 |
commit | d0df22f90a9ed721d3f1facff49b6b162155c428 (patch) | |
tree | 3223203a5579291bb0d07f270e447898c5615aa0 /src | |
parent | 3aa5c234a3c5f360c3e43c5e21d467819e74a050 (diff) |
get_hkl: Complain if subgroups look wrong
Diffstat (limited to 'src')
-rw-r--r-- | src/get_hkl.c | 10 |
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; |