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 ice export to ww3 variables #2

Open
wants to merge 1 commit into
base: ncar_updates
Choose a base branch
from
Open
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
33 changes: 22 additions & 11 deletions mediator/esmFldsExchange_cesm_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1723,19 +1723,30 @@ subroutine esmFldsExchange_cesm(gcomp, phase, rc)

!----------------------------------------------------------
! to wav: fractional ice coverage wrt ocean from ice
! ice thickness (m)
! representative floe diameter (m)
!----------------------------------------------------------
if (phase == 'advertise') then
call addfld(fldListFr(compice)%flds, 'Si_ifrac')
call addfld(fldListTo(compwav)%flds, 'Si_ifrac')
else
if ( fldchk(is_local%wrap%FBexp(compwav) , 'Si_ifrac', rc=rc) .and. &
fldchk(is_local%wrap%FBImp(compice,compice ), 'Si_ifrac', rc=rc)) then
! By default will be using a custom map - but if one is not available, use a generated bilinear instead
call addmap(fldListFr(compice)%flds, 'Si_ifrac', compwav, mapbilnr, 'one', ice2wav_smap)
call addmrg(fldListTo(compwav)%flds, 'Si_ifrac', &
mrg_from1=compice, mrg_fld1='Si_ifrac', mrg_type1='copy')

allocate(flds(3))
flds = (/'Si_ifrac','Si_thick', 'Si_floediam'/)

do n = 1,size(flds)
fldname = trim(flds(n))
if (phase == 'advertise') then
call addfld(fldListFr(compice)%flds, trim(fldname))
call addfld(fldListTo(compwav)%flds, trim(fldname))
else
if ( fldchk(is_local%wrap%FBexp(compwav) , trim(fldname), rc=rc) .and. &
fldchk(is_local%wrap%FBImp(compice,compice), trim(fldname), rc=rc)) then
! By default will be using a custom map - but if one is not available, use a generated bilinear instead
call addmap(fldListFr(compice)%flds, trim(fldname), compwav, mapbilnr , 'one', ice2wav_smap)
call addmrg(fldListTo(compwav)%flds, trim(fldname), &
mrg_from1=compice, mrg_fld1=trim(fldname), mrg_type1='copy')
end if
end if
end if
end do
deallocate(flds)


! ---------------------------------------------------------------------
! to wav: ocean boundary layer depth from ocn
Expand Down
11 changes: 11 additions & 0 deletions mediator/fd_cesm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,17 @@
description: sea-ice export
volume of ice per unit area
#
- standard_name: Si_thick
canonical_units: m
description: sea-ice export
sea ice thickness
#
- standard_name: Si_floediam
canonical_units: m
description: sea-ice export
sea ice floe diameter

#
- standard_name: Si_snowh
canonical_units: m
description: sea-ice export - surface_snow_water_equivalent
Expand Down