From c2816111b6799af3cea2c373a71781fe7423bc13 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 11 Oct 2010 18:26:57 +0200 Subject: output_pixels() fixes --- src/peaks.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/peaks.c') diff --git a/src/peaks.c b/src/peaks.c index 99598fa1..69859c9a 100644 --- a/src/peaks.c +++ b/src/peaks.c @@ -979,14 +979,18 @@ void output_pixels(struct image *image, UnitCell *cell, yp = ymomv / (double)intensity; fprintf(ofh, "%3i %3i %3i %6f (at %5.2f,%5.2f)\n", - image->hits[i].h, image->hits[i].k, image->hits[i].l, - intensity, xp, yp); + it->h, it->k, it->l, intensity, xp, yp); } - fprintf(ofh, "No peak statistics, because output_pixels() was used."); + fprintf(ofh, "No peak statistics, because output_pixels() was used.\n"); /* Blank line at end */ fprintf(ofh, "\n"); + free(xmom); + free(ymom); + free(intensities); + delete_items(obs); + if ( mutex != NULL ) pthread_mutex_unlock(mutex); } -- cgit v1.2.3