diff options
author | Thomas White <taw@bitwiz.org.uk> | 2010-11-20 22:46:11 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:06 +0100 |
commit | 10c4b9c1c596c6196e5ca478fca7f1fa27f2da0c (patch) | |
tree | 2d62c47d59ac98eed759508662d9c1f693de9bb5 /src/facetron.c | |
parent | a4305d698c45fb68cd8e9ce2727b4cfdbda90f9e (diff) |
facetron: Don't forget to reset intensities to zero before re-estimating
Diffstat (limited to 'src/facetron.c')
-rw-r--r-- | src/facetron.c | 1 |
1 files changed, 1 insertions, 0 deletions
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<n_total_patterns; i++ ) { |