Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 03d1d8af authored by LUISELLI Juliette's avatar LUISELLI Juliette
Browse files

Use correct NewIndivEvent at run time in ExpManager_7

parent 499d916b
No related branches found
No related tags found
No related merge requests found
......@@ -422,6 +422,22 @@ void ExpManager_7::do_mutation(int indiv_id) {
exp_m_->exp_s()->mut_params()->max_tries(),
exp_m_->exp_s()->mut_params()->min_align_score());
if (exp_m_->record_tree()) {
int x = indiv_id / exp_m_->world()->height();
int y = indiv_id % exp_m_->world()->height();
NewIndivEvent *eindiv = new NewIndivEvent(
current_individuals[indiv_id],
previous_individuals[next_generation_reproducer_[indiv_id]],
previous_individuals[next_generation_reproducer_2[indiv_id]],
x, y, indiv_id,
next_generation_reproducer_[indiv_id],
next_generation_reproducer_2[indiv_id]);
exp_m_->tree()->update_new_indiv(eindiv);
delete eindiv;
}
if (exp_manager->record_tree()) {
Recombination* recomb = new Recombination(current_individuals[indiv_id]->recomb_posA_,
current_individuals[indiv_id]->recomb_posB_,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment