diff options
author | Thomas White <taw@physics.org> | 2018-10-25 16:48:36 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2019-03-11 16:49:36 +0100 |
commit | 4337cafe052c4ad238c969dfa4cb7c7ac52f5e07 (patch) | |
tree | 5ef5e684565a388c266793db5f965a57467b10e6 /src/whirligig.c | |
parent | a9203226058dfd8ba35aa2e192ca51e030d3394a (diff) |
Use IntegerMatrix for all unit cell transformations
Get rid of UnitCellTransformation, a thin wrapper which didn't do
anything.
Diffstat (limited to 'src/whirligig.c')
-rw-r--r-- | src/whirligig.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/whirligig.c b/src/whirligig.c index 54ade40a..7d50141a 100644 --- a/src/whirligig.c +++ b/src/whirligig.c @@ -364,15 +364,12 @@ static int try_join(struct window *win, int sn) int j; Crystal *cr; UnitCell *ref; - UnitCellTransformation *tfn; const int sp = win->join_ptr - 1; /* Get the appropriately transformed cell from the last crystal in this * series */ - tfn = tfn_from_intmat(win->mat[sn][sp]); cr = win->img[sp].crystals[win->ser[sn][sp]]; - ref = cell_transform(crystal_get_cell(cr), tfn); - tfn_free(tfn); + ref = cell_transform(crystal_get_cell(cr), win->mat[sn][sp]); for ( j=0; j<win->img[win->join_ptr].n_crystals; j++ ) { Crystal *cr2; |