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

exterminate cable_data #450

Merged
merged 4 commits into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 3 additions & 11 deletions src/coupled/ESM1.5/CABLEfilesFromESM1.5/cable_cbm.F90
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,9 @@ SUBROUTINE cbm( dels, air, bgc, canopy, met, &
USE cable_def_types_mod
USE cable_roughness_module
USE cable_air_module
#ifndef NO_CASA_YET
USE casadimension, only : icycle ! used in casa_cnp
#endif
USE cable_data_module, ONLY : icbm_type, point2constants
USE casadimension, ONLY: icycle
USE cable_phys_constants_mod, ONLY: GRAV, CAPP

!ptrs to local constants
TYPE( icbm_type ) :: C
! CABLE model variables
TYPE (air_type), INTENT(INOUT) :: air
TYPE (bgc_pool_type), INTENT(INOUT) :: bgc
Expand Down Expand Up @@ -69,15 +65,11 @@ SUBROUTINE cbm( dels, air, bgc, canopy, met, &
LOGICAL :: jls_radiation= .FALSE.
LOGICAL :: cbl_standalone = .FALSE.


! assign local ptrs to constants defined in cable_data_module
CALL point2constants(C)

cable_runtime%um_radiation = .FALSE.

IF( cable_runtime%um_explicit ) THEN
CALL ruff_resist( veg, rough, ssnow, canopy, veg%vlai, veg%hc, canopy%vlaiw )
met%tk = met%tk + C%grav/C%capp*(rough%zref_tq + 0.9*rough%z0m)
met%tk = met%tk + GRAV/CAPP*(rough%zref_tq + 0.9*rough%z0m)
ENDIF

CALL define_air (met, air)
Expand Down
Loading
Loading