Skip to content

Commit

Permalink
Correct for loop to compute CHANG_STR_AGES in PRE_FATE.params.PFGsucc…
Browse files Browse the repository at this point in the history
…ession
  • Loading branch information
MayaGueguen committed Sep 18, 2024
1 parent a867a78 commit b828afd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/PRE_FATE.params_PFGsuccession.R
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ PRE_FATE.params_PFGsuccession = function(
for (i in 1:no.PFG)
{
## If not in first stratum / herbaceous (or potentially chamaephytes) :
if (!(IMM_SIZE[i] == 100))
if (MAX_STRATUM[i] > 1)
{
k = -log(1 - IMM_SIZE[i] / 100) / (MATURITY[i] / 2)
A = 1:LONGEVITY[i]
Expand Down

0 comments on commit b828afd

Please sign in to comment.