From cd3fd9391c1eec07a28e47917c8b852527e3fd57 Mon Sep 17 00:00:00 2001 From: dschlaep Date: Wed, 10 Jul 2019 13:32:49 -0400 Subject: [PATCH] Increase mortality count only if relsize has become zero due to fire (#345) - close #345 --- ST_indivs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ST_indivs.c b/ST_indivs.c index 95d6ecf4..4267dd07 100644 --- a/ST_indivs.c +++ b/ST_indivs.c @@ -225,7 +225,6 @@ void indiv_proportion_Kill(IndivType *ndv, int killType, RealF proportKilled) // insertIndivKill(ndv->id, killType); //kill indiv Proportionally or adjust their real size irrespective of being annual or perennial, both will have this effect - species_Update_Kills(ndv->myspecies, ndv->age); // saving killing year real size here that is going to use for calculating next year proportional recovery ndv->prv_yr_relsize = ndv->relsize; @@ -238,6 +237,8 @@ void indiv_proportion_Kill(IndivType *ndv, int killType, RealF proportKilled) if (ZERO(ndv->relsize) || LT(ndv->relsize, 0.0)) { ndv->relsize =0.0; + // increase mortality count only if relsize has become zero due to fire + species_Update_Kills(ndv->myspecies, ndv->age); } #undef xF_DELTA