From 7a81b3c0557f97f81fec83afd95802d1e62c1a43 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 12 Aug 2019 11:21:51 +0200 Subject: Don't use H centering for cell comparison check --- tests/cellcompare_check.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'tests/cellcompare_check.c') diff --git a/tests/cellcompare_check.c b/tests/cellcompare_check.c index 962566a9..4b9ba869 100644 --- a/tests/cellcompare_check.c +++ b/tests/cellcompare_check.c @@ -295,7 +295,11 @@ int main(int argc, char *argv[]) rtnl_mtx_free(tr); tr = random_reindexing(rng); cell = cell_transform_rational(cref, tr); - } while ( cell_get_centering(cell) == '?' ); + } while ( (cell_get_centering(cell) == '?') + || (cell_get_centering(cell) == 'H' ) ); + /* H centering is no good because it needs a unique axis to + * be specified in order for uncentering in c_r_c_p to work. + * cell_transform_rational doesn't set the unique axis (yet?) */ if ( check_ccp(cell, cref, tols, rtnl_mtx_is_identity(tr)) ) return 1; if ( check_cpcp(cell, cref, tols, rtnl_mtx_is_perm(tr)) ) return 1; @@ -324,7 +328,8 @@ int main(int argc, char *argv[]) rtnl_mtx_free(tr); tr = random_reindexing(rng); cell = cell_transform_rational(cell2, tr); - } while ( cell_get_centering(cell) == '?' ); + } while ( (cell_get_centering(cell) == '?') + || (cell_get_centering(cell) == 'H' ) ); /* See above */ cell_free(cell2); if ( check_ccp(cell, cref, tols, rtnl_mtx_is_identity(tr)) ) return 1; -- cgit v1.2.3