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

add flag to track lake freezing for clm lake #105

Merged
merged 2 commits into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 4 additions & 0 deletions ufs/ccpp/data/MED_typedefs.F90
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ module MED_typedefs
real (kind=kind_phys),pointer :: lake_q2m (:) => null() !< 2 meter humidity from CLM Lake model
real(kind=kind_phys), pointer :: wind(:) => null() !< wind speed at lowest model level (m/s)
logical, pointer :: flag_iter(:) => null() !< flag for iteration
logical, pointer :: flag_lakefreeze(:) => null() !< flag for lake freeze
real(kind=kind_phys), pointer :: qss_water(:) => null() !< surface air saturation specific humidity over water (kg/kg)
real(kind=kind_phys), pointer :: cmm_water(:) => null() !< momentum exchange coefficient over water (m/s)
real(kind=kind_phys), pointer :: chh_water(:) => null() !< thermal exchange coefficient over water (kg/m2s)
Expand Down Expand Up @@ -368,6 +369,8 @@ subroutine interstitial_create(interstitial, im)
interstitial%wind = huge
allocate(interstitial%flag_iter(im))
interstitial%flag_iter = .true.
allocate(interstitial%flag_lakefreeze(im))
interstitial%flag_lakefreeze = .false.
allocate(interstitial%qss_water(im))
interstitial%qss_water = huge
allocate(interstitial%cmm_ice(im))
Expand Down Expand Up @@ -571,6 +574,7 @@ subroutine interstitial_phys_reset(interstitial)
interstitial%flag_cice = .false.
interstitial%flag_guess = .false.
interstitial%flag_iter = .true.
interstitial%flag_lakefreeze = .false.
interstitial%fm10_ice = huge
interstitial%fm10_land = huge
interstitial%fm10_water = huge
Expand Down
6 changes: 6 additions & 0 deletions ufs/ccpp/data/MED_typedefs.meta
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,12 @@
units = flag
dimensions = (horizontal_loop_extent)
type = logical
[flag_lakefreeze]
standard_name = flag_for_lake_water_freeze
long_name = flag for lake water freeze
units = flag
dimensions = (horizontal_loop_extent)
type = logical
[qss_water]
standard_name = surface_specific_humidity_over_water
long_name = surface air saturation specific humidity over water
Expand Down