From 169e7c5677ffc9c296c0a7eeddb0b77e024a4a55 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 18 Feb 2019 16:04:28 +0100 Subject: Be clear about whether functions need rational or integer transformations --- src/cell_tool.c | 4 ++-- src/whirligig.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/cell_tool.c b/src/cell_tool.c index 12a00192..20e156a1 100644 --- a/src/cell_tool.c +++ b/src/cell_tool.c @@ -119,7 +119,7 @@ static int comparecells(UnitCell *cell, const char *comparecell, if ( intmat_det(m) < 1 ) continue; - nc = cell_transform(cell, m); + nc = cell_transform_intmat(cell, m); if ( compare_cell_parameters(cell2, nc, ltl, atl) ) { STATUS("-----------------------------------------------" @@ -294,7 +294,7 @@ static int find_ambi(UnitCell *cell, SymOpList *sym, double ltl, double atl) if ( intmat_det(m) != +1 ) continue; - nc = cell_transform(cell, m); + nc = cell_transform_intmat(cell, m); if ( compare_cell_parameters(cell, nc, ltl, atl) ) { if ( !intmat_is_identity(m) ) add_symop(ops, m); diff --git a/src/whirligig.c b/src/whirligig.c index 7d50141a..209e7fbe 100644 --- a/src/whirligig.c +++ b/src/whirligig.c @@ -369,7 +369,7 @@ static int try_join(struct window *win, int sn) /* Get the appropriately transformed cell from the last crystal in this * series */ cr = win->img[sp].crystals[win->ser[sn][sp]]; - ref = cell_transform(crystal_get_cell(cr), win->mat[sn][sp]); + ref = cell_transform_intmat(crystal_get_cell(cr), win->mat[sn][sp]); for ( j=0; jimg[win->join_ptr].n_crystals; j++ ) { Crystal *cr2; -- cgit v1.2.3