@@ -6096,10 +6096,7 @@ subroutine init_can_air_params()
60966096 , onesixth & ! intent(in)
60976097 , vonk ! ! intent(in)
60986098 use pft_coms , only : hgt_min ! ! intent(in)
6099- use rk4_coms , only : tiny_offset ! ! intent(in)
6100- use canopy_air_coms, only : psim8 & ! function
6101- , psih8 & ! function
6102- , ugbmin & ! intent(inout)
6099+ use canopy_air_coms, only : ugbmin & ! intent(inout)
61036100 , ubmin & ! intent(inout)
61046101 , ustmin & ! intent(inout)
61056102 , gamm & ! intent(inout)
@@ -6182,8 +6179,6 @@ subroutine init_can_air_params()
61826179 , zetac_shi & ! intent(out)
61836180 , zetac_umi16 & ! intent(out)
61846181 , zetac_uhi13 & ! intent(out)
6185- , psimc_um & ! intent(out)
6186- , psihc_uh & ! intent(out)
61876182 , zd98_a & ! intent(out)
61886183 , zd98_b & ! intent(out)
61896184 , zd98_emax & ! intent(out)
@@ -6216,8 +6211,6 @@ subroutine init_can_air_params()
62166211 , zetac_shi8 & ! intent(out)
62176212 , zetac_umi168 & ! intent(out)
62186213 , zetac_uhi138 & ! intent(out)
6219- , psimc_um8 & ! intent(out)
6220- , psihc_uh8 & ! intent(out)
62216214 , zd98_a8 & ! intent(out)
62226215 , zd98_b8 & ! intent(out)
62236216 , zd98_emax8 & ! intent(out)
@@ -6613,16 +6606,6 @@ subroutine init_can_air_params()
66136606 zetac_uhi138 = dble(zetac_uhi13 )
66146607 !---------------------------------------------------------------------------------------!
66156608
6616- !---------------------------------------------------------------------------------------!
6617- ! Initialise these values with dummies, it will be updated after we define the !
6618- ! functions. !
6619- !---------------------------------------------------------------------------------------!
6620- psimc_um8 = psim8(zetac_um8,.false.)
6621- psimc_um = sngloff(psimc_um8,tiny_offset)
6622- psihc_uh8 = psih8(zetac_uh8,.false.)
6623- psihc_uh = sngloff(psihc_uh8,tiny_offset)
6624- !---------------------------------------------------------------------------------------!
6625-
66266609 return
66276610end subroutine init_can_air_params
66286611!==========================================================================================!
@@ -7660,7 +7643,9 @@ subroutine init_derived_params_after_xml()
76607643 , collatz ! ! function
76617644 use plant_hydro , only : psi2rwc & ! function
76627645 , rwc2psi ! ! function
7663- use canopy_air_coms , only : ustmin & ! intent(in)
7646+ use canopy_air_coms , only : psim8 & ! function
7647+ , psih8 & ! function
7648+ , ustmin & ! intent(in)
76647649 , ugbmin & ! intent(in)
76657650 , ubmin & ! intent(in)
76667651 , gamm & ! intent(in)
@@ -7671,6 +7656,8 @@ subroutine init_derived_params_after_xml()
76717656 , leaf_drywhc & ! intent(in)
76727657 , veg_height_min & ! intent(in)
76737658 , minimum_canopy_depth & ! intent(in)
7659+ , zetac_um8 & ! intent(in)
7660+ , zetac_uh8 & ! intent(in)
76747661 , ustmin8 & ! intent(out)
76757662 , ugbmin8 & ! intent(out)
76767663 , ubmin8 & ! intent(out)
@@ -7679,8 +7666,13 @@ subroutine init_derived_params_after_xml()
76797666 , ribmax8 & ! intent(out)
76807667 , tprandtl8 & ! intent(out)
76817668 , veg_height_min8 & ! intent(out)
7682- , minimum_canopy_depth8 ! ! intent(out)
7683- use rk4_coms , only : rk4leaf_drywhc & ! intent(out)
7669+ , minimum_canopy_depth8 & ! intent(out)
7670+ , psimc_um & ! intent(out)
7671+ , psihc_uh & ! intent(out)
7672+ , psimc_um8 & ! intent(out)
7673+ , psihc_uh8 ! ! intent(out)
7674+ use rk4_coms , only : tiny_offset & ! intent(in)
7675+ , rk4leaf_drywhc & ! intent(out)
76847676 , rk4leaf_maxwhc & ! intent(out)
76857677 , rk4min_veg_lwater ! ! intent(out)
76867678 implicit none
@@ -9172,6 +9164,19 @@ subroutine init_derived_params_after_xml()
91729164 rk4min_veg_lwater = -rk4leaf_drywhc ! Minimum leaf water mass [kg/m2leaf]
91739165 !---------------------------------------------------------------------------------------!
91749166
9167+
9168+
9169+ !---------------------------------------------------------------------------------------!
9170+ ! Initialise these function-dependent parameters only after the single- and double- !
9171+ ! precision parameters that may be read from either the atmospheric model namelist or !
9172+ ! XML are already defined. !
9173+ !---------------------------------------------------------------------------------------!
9174+ psimc_um8 = psim8(zetac_um8,.false.)
9175+ psimc_um = sngloff(psimc_um8,tiny_offset)
9176+ psihc_uh8 = psih8(zetac_uh8,.false.)
9177+ psihc_uh = sngloff(psihc_uh8,tiny_offset)
9178+ !---------------------------------------------------------------------------------------!
9179+
91759180 return
91769181end subroutine init_derived_params_after_xml
91779182!==========================================================================================!
0 commit comments