If there is a new cohort regenerated of broadleaf species during the dormant period it seems to cause the model crash. This issue is occurring most likely due to the correct_bias part, where we have the log(age). At this point in time the age is 0 which case the issue.
Description
If there is a new cohort regenerated of broadleaf species during the dormant period it seems to cause the model crash. This issue is occurring most likely due to the
correct_bias
part, where we have thelog(age)
. At this point in time the age is 0 which case the issue.https://github.com/trotsiuk/r3PG/blob/master/src/md_3PG.f95#L1643
This issue seems not to be a problem if the regeneration occurs during the growing period (not dormant).
Another explanation can be that there are some further allocations related to it.
Code
This is very specific issue. With the code below everything works well those. Need more tests for the code