Skip to content
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
22 changes: 22 additions & 0 deletions mediator/esmFldsExchange_cesm_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,8 @@ subroutine esmFldsExchange_cesm(gcomp, phase, rc)
! to lnd: river channel total water volume from rof
! to lnd: river channel main channel water volume from rof
! to lnd: river water flux back to land due to flooding
! to lnd: tributary water depth
! to lnd: tributary channel depth
! ---------------------------------------------------------------------
if (phase == 'advertise') then
call addfld(fldListFr(comprof)%flds, 'Flrr_volr')
Expand Down Expand Up @@ -646,6 +648,26 @@ subroutine esmFldsExchange_cesm(gcomp, phase, rc)
call addmrg(fldListTo(complnd)%flds, 'Flrr_flood', mrg_from=comprof, mrg_fld='Flrr_flood', mrg_type='copy')
end if
end if
if (phase == 'advertise') then
call addfld(fldListFr(comprof)%flds, 'Sr_tdepth')
call addfld(fldListTo(complnd)%flds, 'Sr_tdepth')
else
if ( fldchk(is_local%wrap%FBExp(complnd) , 'Sr_tdepth', rc=rc) .and. &
fldchk(is_local%wrap%FBImp(comprof, comprof), 'Sr_tdepth', rc=rc)) then
call addmap(fldListFr(comprof)%flds, 'Sr_tdepth', complnd, mapconsf, 'one', rof2lnd_map)
call addmrg(fldListTo(complnd)%flds, 'Sr_tdepth', mrg_from=comprof, mrg_fld='Sr_tdepth', mrg_type='copy')
end if
end if
if (phase == 'advertise') then
call addfld(fldListFr(comprof)%flds, 'Sr_tdepth_max')
call addfld(fldListTo(complnd)%flds, 'Sr_tdepth_max')
else
if ( fldchk(is_local%wrap%FBExp(complnd) , 'Sr_tdepth_max', rc=rc) .and. &
fldchk(is_local%wrap%FBImp(comprof, comprof), 'Sr_tdepth_max', rc=rc)) then
call addmap(fldListFr(comprof)%flds, 'Sr_tdepth_max', complnd, mapconsf, 'one', rof2lnd_map)
call addmrg(fldListTo(complnd)%flds, 'Sr_tdepth_max', mrg_from=comprof, mrg_fld='Sr_tdepth_max', mrg_type='copy')
end if
end if

if (flds_wiso) then
if (phase == 'advertise') then
Expand Down
8 changes: 8 additions & 0 deletions mediator/fd_cesm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -952,6 +952,14 @@
canonical_units: m
description: river export to land - river channel main channel water volume from 16O, 18O, HDO
#
- standard_name: Sr_tdepth
canonical_units: m
description: river export to land - tributary channel water depth
#
- standard_name: Sr_tdepth_max
canonical_units: m
description: river export to land - tributary channel bankfull depth
#
- standard_name: Forr_rofi
canonical_units: kg m-2 s-1
description: river export to ocean - water flux due to runoff (frozen)
Expand Down