Skip to content

Commit

Permalink
Call GWspatialParameters
Browse files Browse the repository at this point in the history
  • Loading branch information
ccarouge committed Nov 18, 2024
1 parent ca4c13e commit d6ee237
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/offline/cable_input.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2578,6 +2578,7 @@ SUBROUTINE load_parameters(met,air,ssnow,veg,climate,bgc,soil,canopy,rough,rad,
USE POPmodule, ONLY: POP_INIT
USE POPLUC_module, ONLY: POPLUC_INIT
USE CABLE_LUC_EXPT, ONLY: LUC_EXPT_TYPE
USE cable_param_module, ONLY: GWspatialParameters

IMPLICIT NONE

Expand Down Expand Up @@ -2661,6 +2662,11 @@ SUBROUTINE load_parameters(met,air,ssnow,veg,climate,bgc,soil,canopy,rough,rad,
sum_flux,veg,mp)
WRITE(logn,*) ' CABLE variables allocated with ', mp, ' patch(es).'

! call below inserted by rk4417 - phase2
!CALL for gw_model false and true sets constants when false
CALL GWspatialParameters(logn,soil,ssnow) ! MMY gw_model = True read var from gridinfo
! MMY gw_model = False use default values

IF (icycle > 0 .OR. CABLE_USER%CASA_DUMP_WRITE ) &
CALL alloc_casavariable(casabiome,casapool,casaflux, &
casamet,casabal,mp)
Expand Down
2 changes: 1 addition & 1 deletion src/offline/cable_parameters.F90
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ MODULE cable_param_module
PRIVATE
PUBLIC get_default_params, write_default_params, derived_parameters, &
check_parameter_values, report_parameters, parID_type, &
write_cnp_params, consistency_ice_veg_soil
write_cnp_params, consistency_ice_veg_soil, GWspatialParameters
INTEGER :: patches_in_parfile=4 ! # patches in default global parameter
! file

Expand Down

0 comments on commit d6ee237

Please sign in to comment.