commit f8c8ab4e120f5eb35c26a5167f1f9983ead96484
parent b91445eded880675a31a7139158d03c156fa7715
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Tue, 28 Feb 2017 10:42:22 +0100
Fix the merge of the per receiver MC estimations
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/ssol_solver.c b/src/ssol_solver.c
@@ -574,9 +574,9 @@ ssol_solve
= htable_receiver_find(mc_rcvs + i, &key);
#define ACCUM_WEIGHT(Name) { \
estimator_data->front.Name.weight += thread_data->front.Name.weight; \
- estimator_data->back.Name.weight += thread_data->front.Name.weight; \
+ estimator_data->back.Name.weight += thread_data->back.Name.weight; \
estimator_data->front.Name.sqr_weight += thread_data->front.Name.sqr_weight;\
- estimator_data->back.Name.sqr_weight += thread_data->front.Name.sqr_weight;\
+ estimator_data->back.Name.sqr_weight += thread_data->back.Name.sqr_weight;\
} (void)0
ACCUM_WEIGHT(irradiance);
ACCUM_WEIGHT(absorptivity_loss);