diff options
author | Thomas White <taw@physics.org> | 2019-03-06 11:40:37 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2019-03-11 16:49:37 +0100 |
commit | 4f11a9f8530178cfb510f11c7bc4b1829bbd0be4 (patch) | |
tree | ce4e620e54773e0f17fb653ccfe21f0490e3e373 /libcrystfel/src/xgandalf.c | |
parent | 68061d0e3c42f61fa7664e0f0996cade13057391 (diff) |
Keep track of the "un-centering" matrix, as well as the "centering"
This makes it easy to reverse the transformation, if required, which it
is when comparing centered cells.
Diffstat (limited to 'libcrystfel/src/xgandalf.c')
-rw-r--r-- | libcrystfel/src/xgandalf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/xgandalf.c b/libcrystfel/src/xgandalf.c index b122cb4c..51819956 100644 --- a/libcrystfel/src/xgandalf.c +++ b/libcrystfel/src/xgandalf.c @@ -157,7 +157,7 @@ void *xgandalf_prepare(IndexingMethod *indm, UnitCell *cell, xgandalf_private_data->cellTemplate = cell; - UnitCell* primitiveCell = uncenter_cell(cell, &xgandalf_private_data->centeringTransformation); + UnitCell* primitiveCell = uncenter_cell(cell, &xgandalf_private_data->centeringTransformation, NULL); UnitCell *uc = cell_new_from_cell(primitiveCell); reduceCell(primitiveCell, &xgandalf_private_data->latticeReductionTransform); |