diff options
Diffstat (limited to 'src/get_hkl.c')
-rw-r--r-- | src/get_hkl.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/get_hkl.c b/src/get_hkl.c index 8a1a75a1..d62b1bfd 100644 --- a/src/get_hkl.c +++ b/src/get_hkl.c @@ -167,8 +167,7 @@ static RefList *twin_reflections(RefList *in, RefList *out; SymOpMask *m; - /* FIXME: Check properly by coset decomposition */ - if ( num_equivs(holo, NULL) < num_equivs(mero, NULL) ) { + if ( !is_subgroup(holo, mero) ) { ERROR("%s is not a subgroup of %s!\n", symmetry_name(mero), symmetry_name(holo)); return NULL; @@ -255,8 +254,7 @@ static RefList *expand_reflections(RefList *in, const SymOpList *target, RefList *out; SymOpMask *m; - /* FIXME: Check properly */ - if ( num_equivs(target, NULL) > num_equivs(initial, NULL) ) { + if ( !is_subgroup(target, initial) ) { ERROR("%s is not a subgroup of %s!\n", symmetry_name(initial), symmetry_name(target)); return NULL; |