aboutsummaryrefslogtreecommitdiff
path: root/src/intensities.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-02-02 15:04:41 +0100
committerThomas White <taw@bitwiz.org.uk>2010-02-02 15:04:41 +0100
commit9c3d9caa7b6fd066c53abf5773a05a83b30d3688 (patch)
tree6fba37776a649eb2e36dd82ad77b25e18d10246c /src/intensities.c
parentd19a20b8c457e7e433dcd18e857de34f3f73f834 (diff)
Match the unit cell to a model cell after indexing
Diffstat (limited to 'src/intensities.c')
-rw-r--r--src/intensities.c6
1 files changed, 2 insertions, 4 deletions
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; x<image->width; x++ ) {
for ( y=0; y<image->height; y++ ) {