From b3a79a2a26c27453471a30308cff841517b138f1 Mon Sep 17 00:00:00 2001 From: Andreas Gattringer <andreas.gattringer@univie.ac.at> Date: Tue, 25 Jul 2023 16:38:14 +0200 Subject: [PATCH] butterflies: fixed suitability threshold check --- src/modules/butterflies/butterflies_populations.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/butterflies/butterflies_populations.c b/src/modules/butterflies/butterflies_populations.c index 161e5d5..f0e0690 100644 --- a/src/modules/butterflies/butterflies_populations.c +++ b/src/modules/butterflies/butterflies_populations.c @@ -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); -- GitLab