stardis-solver

Solve coupled heat transfers
git clone git://git.meso-star.fr/stardis-solver.git
Log | Files | Refs | README | LICENSE

commit c207a555cdb008d5ef3958e3ed70bf05c24adbf1
parent 1f9b3e7152f101a6510b620baeb6bcc0998e4fb9
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Wed, 28 Oct 2020 10:37:04 +0100

Remove dead code

Diffstat:
Msrc/sdis_green.c | 11-----------
1 file changed, 0 insertions(+), 11 deletions(-)

diff --git a/src/sdis_green.c b/src/sdis_green.c @@ -842,7 +842,6 @@ sdis_green_function_solve struct sdis_estimator** out_estimator) { struct sdis_estimator* estimator = NULL; - struct ssp_rng* rng = NULL; size_t npaths; size_t ipath; size_t N = 0; /* #realisations */ @@ -855,15 +854,6 @@ sdis_green_function_solve goto error; } - res = ssp_rng_create(green->scn->dev->allocator, &green->rng_type, &rng); - if(res != RES_OK) goto error; - - /* Avoid correlation by defining the RNG state from the final state of the - * RNG used to estimate the green function */ - rewind(green->rng_state); - res = ssp_rng_read(rng, green->rng_state); - if(res != RES_OK) goto error; - npaths = darray_green_path_size_get(&green->paths); /* Create the estimator */ @@ -890,7 +880,6 @@ sdis_green_function_solve (estimator, green->realisation_time.sum, green->realisation_time.sum2); exit: - if(rng) SSP(rng_ref_put(rng)); if(out_estimator) *out_estimator = estimator; return res; error: