From 10c4b9c1c596c6196e5ca478fca7f1fa27f2da0c Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sat, 20 Nov 2010 22:46:11 +0100 Subject: facetron: Don't forget to reset intensities to zero before re-estimating --- src/facetron.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/facetron.c b/src/facetron.c index 9ea7bcea..f561b554 100644 --- a/src/facetron.c +++ b/src/facetron.c @@ -251,6 +251,7 @@ static void estimate_full(struct image *images, int n_total_patterns, pthread_mutex_t list_lock = PTHREAD_MUTEX_INITIALIZER; clear_items(obs); + memset(i_full, 0, LIST_SIZE*sizeof(double)); tasks = malloc(n_total_patterns * sizeof(struct integrate_args)); for ( i=0; i