Skip to content

Commit 8c7c5d9

Browse files
authored
Update after corrigendum
Code was updated to avoid double return times as explained in the corrigendum Baudena et al 2023 https://nph.onlinelibrary.wiley.com/doi/10.1111/nph.19012
1 parent 43078c4 commit 8c7c5d9

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

LongTermExp/mainfire_longterm.f90

+11-4
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,19 @@
33
! IN THE MEDITERRANEAN FORESTS UNDER INCREASED ARIDITY !
44
!++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++!
55
! THIS CODE HAS BEEN DEVELOPED WITHIN THE PAPER:
6-
! BAUDENA ET AL 2019 NEW PHYTOLOGIST doi: 10.1111/nph.16252
6+
!
7+
! Baudena, M., Santana, V.M., Baeza, M.J., Bautista, S., Eppinga, M.B.,
8+
! Hemerik, L., Garcia Mayor, A., Rodriguez, F., Valdecantos, A., Vallejo,
9+
! V.R., Vasques, A. and Rietkerk, M. (2020),
10+
! Increased aridity drives post-fire recovery of Mediterranean forests
11+
! towards open shrublands. New Phytol, 225: 1500-1515.
712
! https://doi.org/10.1111/nph.16252
813
!
914
! Please refer to the paper for the underlying assumptions and equations.
1015
! For more information on this routine, contact its author:
11-
! Dr. Mara Baudena m.baudena@uu.nl
16+
! Dr. Mara Baudena m.baudena@isac.cnr.it
17+
! It includes a correction to avoid double return times (see Baudena et al
18+
! 2023, corrigendum to the above)
1219
!++++++++++++++++
1320

1421
! THE MODEL INCLUDES 6 VEGETATION TYPES (IN ORDER OF COMPETITION)
@@ -104,7 +111,7 @@ program mainfire_longterm
104111
numd=1/(l(1)*b(1)+l(2)*b(2)+l(3)*b(3)+l(4)*b(4)+l(5)*b(5)+l(6)*b(6)+eps) ! years (from about 2 to 500 y return time)
105112
numok=nint(numd)
106113
num=nint(dummy*365*numok) ! days
107-
if (num.eq.numok*365 .and. firevf>minfirerettime*365.) then
114+
if (num.eq.numok*365-1 .and. firevf>minfirerettime*365.) then ! correction to the code to avoid x2 return times
108115
iifire=1 ! fire!
109116
deltaff=firevf
110117
firevf=0.
@@ -140,7 +147,7 @@ program mainfire_longterm
140147
numd=1/(l(1)*b(1)+l(2)*b(2)+l(3)*b(3)+l(4)*b(4)+l(5)*b(5)+l(6)*b(6)+eps) ! years (from about 2 to 500 y return time)
141148
numok=nint(numd)
142149
num=nint(dummy*365*numok) ! days
143-
if (num.eq.numok*365 .and. firevf>minfirerettime*365.) then
150+
if (num.eq.numok*365-1 .and. firevf>minfirerettime*365.) then ! correction to the code to avoid x2 return times
144151
iifire=1 ! fire!
145152
deltaff=firevf
146153
firevf=0.

0 commit comments

Comments
 (0)