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

butterflies: fixed suitability threshold check

parent c96e7cf2
No related branches found
No related tags found
No related merge requests found
......@@ -158,7 +158,7 @@ void bf_cell_maturation(struct cats_grid *grid, struct cats_thread_info *ts, cat
cats_dt_rates reproduction_rate = calculate_rate(&module_conf->reproduction_rate, NAN, &grid->param,
grid, row, col, NULL);
cats_dt_rates suit_ts = module_conf->reproduction_rate.suitability_cutoff;
if (suit_ts < grid->param.OT && reproduction_rate > 0) {
if (suit_ts < suit_ts && reproduction_rate > 0) {
log_message(LOG_ERROR, "Suitability %f under threshold %Lf, but adults per female = %Lf", suit, suit_ts,
reproduction_rate);
exit_cats(EXIT_FAILURE);
......
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