@@ -111,15 +111,13 @@ subroutine GetSatellitePhenologyInputs(bounds, num_filter, filter, canopystate_i
111111 !
112112 ! !LOCAL VARIABLES:
113113 integer :: fp,p,c ! indices
114- real (r8 ) :: ol ! thickness of canopy layer covered by snow (m)
115- real (r8 ) :: fb ! fraction of canopy layer covered by snow
116114 !- ----------------------------------------------------------------------
117115
118116 associate( &
119117 tlai_driver = > canopystate_inst% tlai_input_patch , & ! Output: [real(r8) (:) ] one-sided leaf area index, no burying by snow
120118 tsai_driver = > canopystate_inst% tsai_input_patch , & ! Output: [real(r8) (:) ] one-sided stem area index, no burying by snow
121119 htop_driver = > canopystate_inst% htop_input_patch , & ! Output: [real(r8) (:) ] canopy top (m)
122- hbot_driver = > canopystate_inst% hbot_input_patch , & ! Output: [real(r8) (:) ] canopy bottom (m)
120+ hbot_driver = > canopystate_inst% hbot_input_patch & ! Output: [real(r8) (:) ] canopy bottom (m)
123121 )
124122
125123 if (use_lai_streams) then
@@ -175,11 +173,18 @@ subroutine SetSPModeCanopyStructs(bounds, num_filter, filter, &
175173 use PatchType , only : patch
176174 use clm_varctl , only : use_fates_sp
177175
176+ !
177+ ! !ARGUMENTS:
178178 type (bounds_type) , intent (in ) :: bounds
179179 integer , intent (in ) :: num_filter ! number of column points in patch filter
180180 integer , intent (in ) :: filter(bounds% endp- bounds% begp+1 ) ! patch filter points
181181 type (waterdiagnosticbulk_type) , intent (in ) :: waterdiagnosticbulk_inst
182182 type (canopystate_type) , intent (inout ) :: canopystate_inst
183+ !
184+ ! !LOCAL VARIABLES:
185+ integer :: fp,p,c ! indices
186+ real (r8 ) :: ol ! thickness of canopy layer covered by snow (m)
187+ real (r8 ) :: fb ! fraction of canopy layer covered by snow
183188
184189 if (use_fates_sp) then
185190 return ! we should not be here
@@ -207,10 +212,10 @@ subroutine SetSPModeCanopyStructs(bounds, num_filter, filter, &
207212 c = patch% column(p)
208213
209214 ! for regular CLM (non-FATES), this is just a 1:1 mapping
210- tlai(p) = tlai_driver
211- tsai(p) = tsai_driver
212- htop(p) = htop_driver
213- hbot(p) = hbot_driver
215+ tlai(p) = tlai_driver(p)
216+ tsai(p) = tsai_driver(p)
217+ htop(p) = htop_driver(p)
218+ hbot(p) = hbot_driver(p)
214219
215220 ! adjust lai and sai for burying by snow. if exposed lai and sai
216221 ! are less than 0.05, set equal to zero to prevent numerical
0 commit comments