solstice-solver

Solver library of the solstice app
git clone git://git.meso-star.com/solstice-solver.git
Log | Files | Refs | README | LICENSE

commit 203f80de0cf0bb98275cc2599740a72e0c33bc22
parent c8c51c86ff48b193b777786f12d17b1f50ddc131
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Wed, 15 Mar 2017 16:20:22 +0100

BugFix: wrong MC results for receiverXsampled.

Diffstat:
Msrc/ssol_estimator.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ssol_estimator.c b/src/ssol_estimator.c @@ -158,7 +158,7 @@ ssol_estimator_get_mc_sampled_x_receiver mc_rcv1 = side == SSOL_FRONT ? &mc_rcv->front : &mc_rcv->back; #define SETUP_MC_RESULT(Name) { \ - const double N = (double)mc_samp->nb_samples; \ + const double N = (double)estimator->realisation_count; \ const struct mc_data* data = &mc_rcv1->Name; \ rcv->Name.E = data->weight / N; \ rcv->Name.V = data->sqr_weight / N - rcv->Name.E*rcv->Name.E; \