commit 26a9c5cd3287c8af88ab7970a68b690b577994c9
parent f904ab7d3d1b9a9ad3b1aa45ec9278a50636c567
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Fri, 8 Sep 2017 09:39:29 +0200
Fix the mc_data_add_weight internal function
The weight was not added but simply written into the tmp accumulator.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ssol_estimator_c.h b/src/ssol_estimator_c.h
@@ -79,7 +79,7 @@ mc_data_add_weight(struct mc_data* data, size_t irealisation, double w)
mc_data_flush(data);
data->irealisation = irealisation;
}
- data->tmp = w;
+ data->tmp += w;
}
static INLINE void