Skip to content
Snippets Groups Projects
Commit f4f96bf2 authored by Andreas Gattringer's avatar Andreas Gattringer
Browse files

Butterflies: count initially populated cells after adjusting for carrying capacity

parent b75714f0
No related branches found
No related tags found
No related merge requests found
...@@ -165,8 +165,15 @@ void initial_population_adjustment(struct cats_configuration *conf, struct cats_ ...@@ -165,8 +165,15 @@ void initial_population_adjustment(struct cats_configuration *conf, struct cats_
{ {
int64_t init_populated_cells = count_populated_cells(grid); int64_t init_populated_cells = count_populated_cells(grid);
int64_t invalid_habitat = butterflies_prune_invalid_cells(grid); int64_t invalid_habitat = butterflies_prune_invalid_cells(grid);
log_message(LOG_IMPORTANT, "Loaded initial populations: %ld cells occupied before adjustment", init_populated_cells);
if (grid->param.initial_population.set_to_cc == true) {
increase_initial_population_to_cc(grid, conf);
int64_t populated_cells_after_cc = count_populated_cells(grid);
log_message(LOG_IMPORTANT, "\t%ld cells occupied after setting population sizes to carrying capacity", populated_cells_after_cc);
}
if (grid->param.initial_population.set_to_cc == true) increase_initial_population_to_cc(grid, conf);
if (grid->param.initial_population.suitability_threshold > 0.0) { if (grid->param.initial_population.suitability_threshold > 0.0) {
prune_initial_population_under_threshold(conf, grid); prune_initial_population_under_threshold(conf, grid);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment