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

butterflies: debug printf for meturation

parent eae7c05e
Branches
Tags
No related merge requests found
...@@ -94,11 +94,16 @@ void bf_cell_maturation(struct cats_grid *grid, struct cats_thread_info *ts, cat ...@@ -94,11 +94,16 @@ void bf_cell_maturation(struct cats_grid *grid, struct cats_thread_info *ts, cat
exit_cats(EXIT_FAILURE); exit_cats(EXIT_FAILURE);
} }
printf("row %d col %d: suitability: %f, eggs: %f, reproduction rate %Lf\n", row, col, suit, eggs, reproduction_rate);
if (reproduction_rate == 0) { if (reproduction_rate == 0) {
data->eggs[row][col] = 0; data->eggs[row][col] = 0;
set_population_ignore_cc(grid, row, col, 0); set_population_ignore_cc(grid, row, col, 0);
return; return;
}; }
cats_dt_rates survival = bf_egg_to_adult_survival_rate(reproduction_rate, eggs, module_conf->female_fraction); cats_dt_rates survival = bf_egg_to_adult_survival_rate(reproduction_rate, eggs, module_conf->female_fraction);
cats_dt_population adults = poisson(ts->rng, eggs * survival); cats_dt_population adults = poisson(ts->rng, eggs * survival);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment