From d0bcfe2d7f65e23fc460a655bffd862ac2055d1b Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 11 Feb 2013 00:02:28 -0800 Subject: Add comment --- libcrystfel/src/mosflm.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libcrystfel') diff --git a/libcrystfel/src/mosflm.c b/libcrystfel/src/mosflm.c index dc584f8e..98d4280d 100644 --- a/libcrystfel/src/mosflm.c +++ b/libcrystfel/src/mosflm.c @@ -167,8 +167,14 @@ static int check_cell(struct mosflm_private *mp, struct image *image, if ( (latt_r == L_RHOMBOHEDRAL) && (latt_m == L_HEXAGONAL) ) { UnitCell *fixup; + assert(cen_r == 'R'); assert(cen_m == 'H'); + + /* Mercifully, MOSFLM seems to use the obverse setting + * for this transformation, which is the same as + * uncenter_cell(). Otherwise, this would have to be + * done by a separate routine. */ fixup = uncenter_cell(out, NULL); cell_free(out); out = fixup; -- cgit v1.2.3