From 84e676ef5f3c8c669c987b847efd82d8050438ec Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 4 Oct 2012 10:57:31 +0200 Subject: Fix two more FIXMEs --- src/get_hkl.c | 6 ++---- 1 file 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; -- cgit v1.2.3