Skip to content

Commit

Permalink
A follow-up to ce409d7
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisDrogoul committed Dec 29, 2021
1 parent eb11efd commit 903656a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -190,7 +190,7 @@ private double computeFitnessAndCloseSimulation(final IAgent sim, final Paramete
double lastFitnessValue = 0;
if (fitness != null) { lastFitnessValue = Cast.asFloat(sim.getScope(), fitness.value(sim.getScope())); }
if (output != null) { getSpecies().getLog().doRefreshWriteAndClose(sol, lastFitnessValue); }
sim.dispose();
if (dispose) { sim.dispose(); }
return lastFitnessValue;
}

Expand Down

0 comments on commit 903656a

Please sign in to comment.