Skip to content

Commit

Permalink
restored main version less reqd changes to USESs
Browse files Browse the repository at this point in the history
  • Loading branch information
JhanSrbinovsky authored and ccarouge committed Nov 25, 2024
1 parent 0447ea0 commit a3363e7
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/offline/cable_parameters.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,6 @@ SUBROUTINE write_default_params(met, air, ssnow, veg, bgc, &
INTEGER :: e,f,h,i,klev ! do loop counter
INTEGER :: is ! YP oct07
INTEGER :: ir ! BP sep2010
REAL :: totdepth ! YP oct07
REAL :: tmp ! BP sep2010

! The following is for the alternate method to calculate froot by Zeng 2001
Expand Down Expand Up @@ -1260,7 +1259,7 @@ SUBROUTINE write_default_params(met, air, ssnow, veg, bgc, &
rough%za_tq = 40.0

veg%meth = 1 ! canopy turbulence parameterisation method: 0 or 1

ALLOCATE(defaultLAI(mp, 12))

DO e = 1, mland ! over all land grid points
Expand Down Expand Up @@ -3328,12 +3327,12 @@ SUBROUTINE init_veg_from_vegin(ifmp,fmp, veg, soil_zse )
! (Jackson et al. 1996, Oceologica, 108:389-411)
totdepth = 0.0
DO is = 1, ms-1
totdepth = totdepth + soil_zse(is) * 100.0 ! unit in centimetres
veg%froot(:, is) = MIN( 1.0, 1.0-veg%rootbeta(:)**totdepth )
totdepth = totdepth + soil_zse(is) * 100.0 ! unit in centimetres
veg%froot(ifmp:fmp, is) = MIN( 1.0, 1.0-veg%rootbeta(ifmp:fmp)**totdepth )
END DO
veg%froot(:, ms) = 1.0 - veg%froot(:, ms-1)
veg%froot(ifmp:fmp, ms) = 1.0 - veg%froot(ifmp:fmp, ms-1)
DO is = ms-1, 2, -1
veg%froot(:, is) = veg%froot(:, is)-veg%froot(:,is-1)
veg%froot(ifmp:fmp, is) = veg%froot(ifmp:fmp, is)-veg%froot(ifmp:fmp,is-1)
END DO

END SUBROUTINE init_veg_from_vegin
Expand Down

0 comments on commit a3363e7

Please sign in to comment.