aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2012-10-04 10:57:31 +0200
committerThomas White <taw@physics.org>2012-10-04 10:57:31 +0200
commit84e676ef5f3c8c669c987b847efd82d8050438ec (patch)
treef43fe3ab2f474378348d223bbfbe1da5b1927f93 /src
parent877543e38be9c3ef7fa0f7888250b8d7f2453da0 (diff)
Fix two more FIXMEs
Diffstat (limited to 'src')
-rw-r--r--src/get_hkl.c6
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;