diff --git a/src/post_treatments/aevol_post_robustness.cpp b/src/post_treatments/aevol_post_robustness.cpp index 9da4350b35f1270ba1b5e04434b301a5134d2368..6b3340a4b9d058c9c61f40e24fe5aab42e1dda87 100644 --- a/src/post_treatments/aevol_post_robustness.cpp +++ b/src/post_treatments/aevol_post_robustness.cpp @@ -112,8 +112,8 @@ int main(int argc, char* argv[]) { IndivAnalysis wanted_indiv(*indiv_tmp); wanted_indiv.set_grid_cell(indiv_tmp->grid_cell()); - wanted_indiv.grid_cell()->set_individual((Individual*)&wanted_indiv);; - indiv_tmp = nullptr; + wanted_indiv.grid_cell()->set_individual((Individual*)&wanted_indiv); + // Now that we have the index and rank of the indiv of interest, we can // generate the output file name and hence open that file char filename[255]; @@ -171,6 +171,9 @@ int main(int argc, char* argv[]) { fclose(output_summary); fclose(output_detailed); + + indiv_tmp->set_grid_cell(wanted_indiv.grid_cell()); + indiv_tmp->grid_cell()->set_individual(indiv_tmp); delete exp_manager;