From c826d6a13e395c011ea5a1eb0c6cb40b2bc716d9 Mon Sep 17 00:00:00 2001 From: "Kevin R. Thornton" Date: Thu, 18 Jul 2024 04:03:25 -0700 Subject: [PATCH] all tests pass --- lib/evolve_discrete_demes/evolvets.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/evolve_discrete_demes/evolvets.cc b/lib/evolve_discrete_demes/evolvets.cc index 82878d4a8..3005e2e0d 100644 --- a/lib/evolve_discrete_demes/evolvets.cc +++ b/lib/evolve_discrete_demes/evolvets.cc @@ -583,6 +583,20 @@ evolve_with_tree_sequences( } else { + if (options.preserve_selected_fixations == false) + { + if (fixations_removed == false) + { + fwdpp::ts:: + remove_fixations_from_haploid_genomes( + pop.haploid_genomes, pop.mutations, + pop.mcounts, + pop.mcounts_from_preserved_nodes, + 2 * pop.diploids.size(), + options.preserve_selected_fixations); + fixations_removed = true; + } + } genetics.mutation_recycling_bin = fwdpp::ts::make_mut_queue( simplification_output.preserved_mutations, pop.mutations.size());