From 9c3d9caa7b6fd066c53abf5773a05a83b30d3688 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 2 Feb 2010 15:04:41 +0100 Subject: Match the unit cell to a model cell after indexing --- src/intensities.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/intensities.c') diff --git a/src/intensities.c b/src/intensities.c index 8b100d9f..d5b3604c 100644 --- a/src/intensities.c +++ b/src/intensities.c @@ -49,7 +49,7 @@ static int sum_nearby_points(int16_t *data, int width, int x, int y) } -void output_intensities(struct image *image) +void output_intensities(struct image *image, UnitCell *cell) { int x, y; double ax, ay, az; @@ -59,9 +59,7 @@ void output_intensities(struct image *image) int n_hits = 0; int i; - cell_get_cartesian(image->molecule->cell, &ax, &ay, &az, - &bx, &by, &bz, - &cx, &cy, &cz); + cell_get_cartesian(cell, &ax, &ay, &az, &bx, &by, &bz, &cx, &cy, &cz); for ( x=0; xwidth; x++ ) { for ( y=0; yheight; y++ ) { -- cgit v1.2.3