Skip to content

Commit f8fbe93

Browse files
committed
update ECMmodel
1 parent dff0f0f commit f8fbe93

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/A_routines.f90

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1994,10 +1994,10 @@ subroutine rhoMcalc(rho_M, CN,pars)
19941994

19951995

19961996
! subroutine CUEcalc(ETS, st,r_r,W_RT,r_RT,rm_aut_roots,litt_RT,exud,normFactP,normFactETS,P_RT,pars)
1997-
subroutine CUEcalc(ETS, st,r_r,W_RT,r_RT,rm_aut_roots,litt_RT,exud,normFactP,P_RT,pars)
1997+
subroutine CUEcalc(ETS, st,r_r,W_RT,r_RT,rm_aut_roots,litt_RT,exud,P_RT,pars)
19981998

19991999
implicit none
2000-
real(8),intent(in) :: ETS, st,r_r,W_RT, normFactP, pars(12)!, normFactETS
2000+
real(8),intent(in) :: ETS, st,r_r,W_RT, pars(12)!, normFactETS
20012001
real(8),intent(out) :: rm_aut_roots,litt_RT,exud,r_RT,P_RT
20022002

20032003
real(8) :: r_F, s_F, rho_M,CN
@@ -2028,7 +2028,7 @@ subroutine CUEcalc(ETS, st,r_r,W_RT,r_RT,rm_aut_roots,litt_RT,exud,normFactP,P_R
20282028

20292029
! Here, r_RT is the apparent maintenance respiration rate of fine roots when C input to the fungi has been taken into account.
20302030
!Fine root maintenance respiration is replaced with the following:
2031-
r_RT = (r_r+r_F * rho_M)/(1+rho_M) * normFactP
2031+
r_RT = (r_r+r_F * rho_M)/(1+rho_M)
20322032

20332033
! When calculating the related loss of C to the atmosphere, we need to subtract the losses from this, i.e., use
20342034
!rm_aut_roots losses of C from roots & ECM to
@@ -2039,14 +2039,14 @@ subroutine CUEcalc(ETS, st,r_r,W_RT,r_RT,rm_aut_roots,litt_RT,exud,normFactP,P_R
20392039
!normalise parameters according to P and ETS factors
20402040
! s_H = s_H * normFactETS
20412041
! phi_M = phi_M * normFactETS
2042-
rm_aut_roots = rm_aut_roots * normFactP
2042+
rm_aut_roots = rm_aut_roots
20432043

20442044
! To Yasso as root litter (or later maybe special composition as hyphal litter)
2045-
litt_RT = (rho_M * h_M * s_H)/(1+rho_M) * W_RT * normFactP
2045+
litt_RT = (rho_M * h_M * s_H)/(1+rho_M) * W_RT
20462046
! To Yasso as sugar (W) exudates
2047-
exud = (rho_M *ksi_M)/(1+rho_M) * W_RT * normFactP
2047+
exud = (rho_M *ksi_M)/(1+rho_M) * W_RT
20482048

2049-
P_RT = (rho_M *ksi_M*phi_M)/(1+rho_M) * W_RT * normFactP
2049+
P_RT = (rho_M *ksi_M*phi_M)/(1+rho_M) * W_RT
20502050

20512051
end subroutine
20522052

src/B_prebas.f90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ subroutine prebas(nYears,nLayers,nSp,siteInfo,pCrobas,initVar,thinning,output, &
111111
real (kind=8) :: Nmort, BAmort
112112
!!ECMmodelling
113113
real (kind=8) :: r_RT, rm_aut_roots, litt_RT, exud(nLayers), P_RT
114-
real (kind=8) :: normFactP, Cost_m !normFactETS,!!Cost_m is the "apparent maintenance respiration" rate of fine roots when C input to the fungi has been taken into account.
114+
real (kind=8) :: Cost_m !normFactP,normFactETS,!!Cost_m is the "apparent maintenance respiration" rate of fine roots when C input to the fungi has been taken into account.
115115

116116
!fix parameters
117117
real (kind=8) :: qcTOT0,Atot,fAPARprel(365)
@@ -728,9 +728,9 @@ subroutine prebas(nYears,nLayers,nSp,siteInfo,pCrobas,initVar,thinning,output, &
728728
! ECM modelling
729729
if(ECMmod==1) then !!!ECMmodelling
730730
! normFactETS = 1. + par_aETS * (ETS-ETS_ref)/ETS_ref
731-
normFactP = p0 / p0_ref
731+
! normFactP = p0 / p0_ref
732732
! call CUEcalc(ETS, sitetype,par_mr0,W_froot,r_RT,rm_aut_roots,litt_RT,exud(ij),normFactP,normFactETS,P_RT,pECMmod) !!!ECMmodelling
733-
call CUEcalc(ETS, sitetype,par_mr0,W_froot,r_RT,rm_aut_roots,litt_RT,exud(ij),normFactP,P_RT,pECMmod) !!!ECMmodelling
733+
call CUEcalc(ETS, sitetype,par_mr,W_froot,r_RT,rm_aut_roots,litt_RT,exud(ij),P_RT,pECMmod) !!!ECMmodelling
734734
modOut((year+1),45,ij,1) = P_RT !add priming to heterotrophic respiration
735735
Respi_m = par_mf * wf_STKG + par_mw * W_wsap + rm_aut_roots * W_froot !!!ECMmodelling
736736
Cost_m = par_mf * wf_STKG + par_mw * W_wsap + r_RT * W_froot !!!ECMmodelling

0 commit comments

Comments
 (0)