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

Fix So_t for regional atm+docn configuration #415

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from
Draft
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
2 changes: 2 additions & 0 deletions cime_config/config_component_cesm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@
<values match="last">
<value compset="_DATM.*_DOCN%SOM" >OPTION2</value>
<value compset="_POP2" >OPTION2</value>
<value compset="_NEMO" >OPTION2</value>
<value compset="_MOM6" >OPTION1</value>
<value compset="_POP2" grid="oi%gx1v6" >OPTION1</value>
<value compset="_POP2" grid="oi%gx1v7" >OPTION1</value>
Expand Down Expand Up @@ -483,6 +484,7 @@
<value compset="DATM.*_MOM\d">TRUE</value>
<value compset="CAM.*_MOM\d">TRUE</value>
<value compset="CAM.*_POP\d">TRUE</value>
<value compset="CAM.*_NEMO">FALSE</value>
<value compset="CAM.*_DOCN%SOM">TRUE</value>
</values>
<group>run_budgets</group>
Expand Down
1 change: 1 addition & 0 deletions mediator/esmFldsExchange_cesm_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1363,6 +1363,7 @@ subroutine esmFldsExchange_cesm(gcomp, phase, rc)
end if
end if
if (fldchk(is_local%wrap%FBexp(compatm), 'So_t', rc=rc)) then
call addmap_from(compocn, 'So_t', compatm, mapnstod_consf, 'ofrac', ocn2atm_map)
call addmrg_to(compatm, 'So_t', mrg_from=compocn, mrg_fld='So_t', mrg_type='copy')
end if
end if
Expand Down
10 changes: 7 additions & 3 deletions mediator/med_map_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -404,9 +404,13 @@ subroutine med_map_routehandles_initfrom_field(n1, n2, fldsrc, flddst, mapindex,
! override defaults for specific cases
if (trim(coupling_mode) == 'cesm') then
if (n1 == compwav .and. n2 == compocn) then
srcMaskValue = 0
dstMaskValue = ispval_mask
endif
srcMaskValue = 0
dstMaskValue = ispval_mask
endif
if (n1 == compocn .and. n2 == compatm) then
srcMaskValue = 0
dstMaskValue = 0
endif
end if
if (trim(coupling_mode(1:3)) == 'ufs') then
if (n1 == compatm .and. n2 == complnd) then
Expand Down
Loading