From f8a47e36863944032c8ff2239163e3b25bcaae24 Mon Sep 17 00:00:00 2001 From: Marco Foley <marco.foley@inria.fr> Date: Fri, 9 Oct 2020 15:49:38 +0200 Subject: [PATCH] [aevol_post_neutral_mut_acc.cpp] Fix seed option not changing rng --- src/post_treatments/aevol_post_neutral_mut_acc.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/post_treatments/aevol_post_neutral_mut_acc.cpp b/src/post_treatments/aevol_post_neutral_mut_acc.cpp index b15742c5c..733db3053 100644 --- a/src/post_treatments/aevol_post_neutral_mut_acc.cpp +++ b/src/post_treatments/aevol_post_neutral_mut_acc.cpp @@ -115,7 +115,10 @@ int main(int argc, char ** argv) { out::init("result.txt", "mutation.txt"); - run_generations(number_generation, inputJson.getIndividuals()[0]); + auto mut_prng = std::make_shared<JumpingMT>(seed_prng); + auto stoch_prng = std::make_shared<JumpingMT>(seed_prng); + Individual ancestor = Individual(inputJson.getIndividuals()[0], 0, mut_prng, stoch_prng); + run_generations(number_generation, &ancestor); // std::vector<Individual> indiv_vector; // indiv_vector.emplace_back(*indiv); -- GitLab