aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-08-12 11:21:51 +0200
committerThomas White <taw@physics.org>2019-08-16 10:27:00 +0200
commit7a81b3c0557f97f81fec83afd95802d1e62c1a43 (patch)
tree6e87cd398be2b18372d0632963717c52aa9da4cc /tests
parent93c6569621084680dc94e5395b39f6308ae9d11a (diff)
Don't use H centering for cell comparison check
Diffstat (limited to 'tests')
-rw-r--r--tests/cellcompare_check.c9
1 files changed, 7 insertions, 2 deletions
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;