Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace cable_gw_hydro.F90 with its new version #231

Merged
merged 9 commits into from
Sep 1, 2024
18 changes: 16 additions & 2 deletions src/offline/cable_define_types.F90
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ MODULE cable_def_types_mod
rhosoil_vec,& !soil density [kg/m3]
ssat_vec, & !volumetric water content at saturation [mm3/mm3]
watr, & !residual water content of the soil [mm3/mm3]
smpc_vec, & ! Hutson Cass SWC potential cutoff ! 2 lines inserted by rk4417 - phase2
wbc_vec, & ! Hutson Cass SWC volumetric water cutoff
sfc_vec, & !field capcacity (hk = 1 mm/day)
swilt_vec ! wilting point (hk = 0.02 mm/day)

Expand All @@ -187,6 +189,8 @@ MODULE cable_def_types_mod
GWssat_vec, & !saturated water content of the aquifer [mm3/mm3]
GWwatr, & !residual water content of the aquifer [mm3/mm3]
GWz, & !node depth of the aquifer [m]
smpc_GW, & ! Hutson Cass SWC potential cutoff ! 2 lines inserted by rk4417 - phase2
wbc_GW, & ! Hutson Cass SWC volumetric water cutoff
GWdz, & !thickness of the aquifer [m]
GWrhosoil_vec !density of the aquifer substrate [kg/m3]

Expand Down Expand Up @@ -240,7 +244,7 @@ MODULE cable_def_types_mod
owetfac, & ! surface wetness fact. at previous time step
t_snwlr, & ! top snow layer depth in 3 layer snowpack
tggav, & ! mean soil temperature in K
otgg, & ! soil temperature in K
! otgg, & ! soil temperature in K ! moved below by rk4417 - phase2
otss, & ! surface temperature (weighted soil, snow)
otss_0, & ! surface temperature (weighted soil, snow)
tprecip, &
Expand All @@ -267,6 +271,7 @@ MODULE cable_def_types_mod
sdepth, & ! snow depth
smass, & ! snow mass
ssdn, & ! snow densities
otgg, & ! soil temperature in K ! moved here from above by rk4417 - phase2
tgg, & ! soil temperature in K
tggsn, & ! snow temperature in K
dtmlt, & ! water flux to the soil
Expand Down Expand Up @@ -880,6 +885,10 @@ SUBROUTINE alloc_soil_parameter_type(var, mp)
ALLOCATE( var%ssat_vec(mp,ms) )
ALLOCATE( var%watr(mp,ms) )
var%watr(:,:) = 0.05
ALLOCATE( var%wbc_GW(mp) ) ! block inserted by rk4417 - phase2
ALLOCATE( var%smpc_GW(mp) )
ALLOCATE( var%wbc_vec(mp,ms) )
ALLOCATE( var%smpc_vec(mp,ms) ) ! end - rk4417 - phase
ALLOCATE( var%sfc_vec(mp,ms) )
ALLOCATE( var%swilt_vec(mp,ms) )
ALLOCATE( var%sand_vec(mp,ms) )
Expand Down Expand Up @@ -977,7 +986,8 @@ SUBROUTINE alloc_soil_snow_type(var, mp)
ALLOCATE( var%t_snwlr(mp) )
ALLOCATE( var%wbfice(mp,ms) )
ALLOCATE( var%tggav(mp) )
ALLOCATE( var%otgg(mp) )
! ALLOCATE( var%otgg(mp) ) ! replaced by below - rk4417 - phase2
ALLOCATE( var%otgg(mp,ms) )
ALLOCATE( var%otss(mp) )
ALLOCATE( var%otss_0(mp) )
ALLOCATE( var%tprecip(mp) )
Expand Down Expand Up @@ -1520,6 +1530,10 @@ SUBROUTINE dealloc_soil_parameter_type(var)
DEALLOCATE( var% cnsd_vec )
DEALLOCATE( var%hyds_vec )
DEALLOCATE( var%sucs_vec )
DEALLOCATE( var%wbc_GW ) ! block inserted by rk4417 - phase2
DEALLOCATE( var%smpc_GW )
DEALLOCATE( var%wbc_vec )
DEALLOCATE( var%smpc_vec ) ! end - rk4417 - phase
DEALLOCATE( var%bch_vec )
DEALLOCATE( var%ssat_vec )
DEALLOCATE( var%watr )
Expand Down
Loading
Loading