From b6ec4053a99b1c0b584a20af189a1a48db89f908 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 28 Feb 2014 15:09:43 +0100 Subject: Split out ambiguity tests to "ambi_check" --- tests/symmetry_check.c | 257 +------------------------------------------------ 1 file changed, 5 insertions(+), 252 deletions(-) (limited to 'tests/symmetry_check.c') diff --git a/tests/symmetry_check.c b/tests/symmetry_check.c index ba42f990..a90ed0fb 100644 --- a/tests/symmetry_check.c +++ b/tests/symmetry_check.c @@ -3,7 +3,11 @@ * * Check symmetry * - * Copyright © 2012 Thomas White + * Copyright © 2012-2014 Deutsches Elektronen-Synchrotron DESY, + * a research centre of the Helmholtz Association. + * + * Authors: + * 2012-2014 Thomas White * * This file is part of CrystFEL. * @@ -35,104 +39,6 @@ #include -static int is_nonmirror_subgroup(SymOpList *holo, SymOpList *mero) -{ - SymOpList *twins; - int index; - - if ( !is_subgroup(holo, mero) ) return 0; - - twins = get_ambiguities(holo, mero); - if ( twins == NULL ) return 0; - - index = num_equivs(twins, NULL); - free_symoplist(twins); - - return index; -} - - -static int is_maximal_nonmirror_subgroup(SymOpList *holo, SymOpList *mero, - SymOpList **list, int n) -{ - int i; - int index; - - index = is_nonmirror_subgroup(holo, mero); - if ( index == 0 ) return 0; - - /* Try to find a group ... */ - for ( i=0; i