Commit d0df22f9 authored by Thomas White's avatar Thomas White
Browse files

get_hkl: Complain if subgroups look wrong

parent 3aa5c234
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment