@@ -1554,7 +1554,7 @@ subroutine HydrSiteColdStart(sites, bc_in )
15541554
15551555 ! [kg/m2] / ([m] * [kg/m3]) = [m3/m3]
15561556 h2osoi_liqvol = min (eff_por, &
1557- sum (bc_in(s )% h2o_liq_sisl(j_t:j_b))/ (csite_hydr% dz_rhiz(j)* denh2o))
1557+ sum (sites(s) % bc_in(ifp )% h2o_liq_sisl(j_t:j_b))/ (csite_hydr% dz_rhiz(j)* denh2o))
15581558 csite_hydr% h2osoi_liqvol_shell(j,1 :nshell) = h2osoi_liqvol
15591559
15601560 end do
@@ -2235,6 +2235,7 @@ subroutine FillDrainRhizShells(nsites, sites, bc_in)
22352235 real (r8 ) :: cumShellH2O ! sum of water in all the shells of a specific layer [kg/m2]
22362236 real (r8 ) :: h2osoi_liq_shell(nlevsoi_hyd_max,nshell) ! water in the rhizosphere shells [kg]
22372237 integer :: tmp ! temporary
2238+ integer :: ifp ! patch index for accessing boundary condition water content
22382239 logical :: found ! flag in search loop
22392240 !- ----------------------------------------------------------------------
22402241
@@ -2253,6 +2254,9 @@ subroutine FillDrainRhizShells(nsites, sites, bc_in)
22532254 ! If there are just no plants in this site, don't bother shuffling water
22542255 if ( sum (csite_hydr% l_aroot_layer) <= nearzero ) cycle
22552256
2257+ ! Temporarily hardcode this prior to multi-column fates implementation
2258+ ifp = 1
2259+
22562260 do j = 1 ,csite_hydr% nlevrhiz
22572261
22582262 j_t = csite_hydr% map_r2s(j,1 ) ! top soil layer matching rhiz layer
@@ -2263,7 +2267,7 @@ subroutine FillDrainRhizShells(nsites, sites, bc_in)
22632267 cumShellH2O= sum (csite_hydr% h2osoi_liqvol_shell(j,:) * csite_hydr% v_shell(j,:)) * denh2o* AREA_INV
22642268
22652269 ! [kg/m2]
2266- dwat_kgm2 = sum (bc_in(s )% h2o_liq_sisl(j_t:j_b)) - cumShellH2O
2270+ dwat_kgm2 = sum (sites(s) % bc_in(ifp )% h2o_liq_sisl(j_t:j_b)) - cumShellH2O
22672271
22682272 dwat_kg = dwat_kgm2 * AREA
22692273
@@ -2325,7 +2329,7 @@ subroutine FillDrainRhizShells(nsites, sites, bc_in)
23252329 csite_hydr% v_shell(j,:) * denh2o
23262330
23272331
2328- errh2o(j) = sum (h2osoi_liq_shell(j,:))* AREA_INV - sum (bc_in(s )% h2o_liq_sisl(j_t:j_b))
2332+ errh2o(j) = sum (h2osoi_liq_shell(j,:))* AREA_INV - sum (sites(s) % bc_in(ifp )% h2o_liq_sisl(j_t:j_b))
23292333
23302334 if (abs (errh2o(j)) > 1.e-9_r8 ) then
23312335 write (fates_log(),* )' WARNING: water balance error in FillDrainRhizShells'
@@ -2771,7 +2775,7 @@ subroutine hydraulics_bc ( nsites, sites, bc_in, bc_out, dtime)
27712775 ! into the root, othersize weight by root length
27722776 ! h2osoi_liqvol: [kg/m2] / [m] / [kg/m3] = [m3/m3]
27732777 eff_por = sites(s)% bc_in(ifp)% eff_porosity_sl(j_bc)
2774- h2osoi_liqvol = min (eff_por, bc_in (s)% h2o_liq_sisl(j_bc)/ (bc_in(s )% dz_sisl(j_bc)* denh2o))
2778+ h2osoi_liqvol = min (eff_por, sites (s)% bc_in(ifp) % h2o_liq_sisl(j_bc)/ (sites(s) % bc_in(ifp )% dz_sisl(j_bc)* denh2o))
27752779 psi_layer = csite_hydr% wrf_soil(j)% p% psi_from_th(h2osoi_liqvol)
27762780 ftc_layer = csite_hydr% wkf_soil(j)% p% ftc_from_psi(psi_layer)
27772781 weight_sl(j_bc) = bc_in(s)% hksat_sisl(j_bc)* ftc_layer* csite_hydr% rootl_sl(j_bc)
0 commit comments