Skip to content

Commit

Permalink
Fix to remove negative runoff, backport of
Browse files Browse the repository at this point in the history
  • Loading branch information
pgf committed Oct 18, 2024
1 parent 93b4a07 commit 9061e7c
Show file tree
Hide file tree
Showing 3 changed files with 329 additions and 18 deletions.
11 changes: 11 additions & 0 deletions cime_config/namelist_definition_drv.xml
Original file line number Diff line number Diff line change
Expand Up @@ -903,6 +903,17 @@
<value COMP_LND="xlnd">off</value>
</values>
</entry>
<entry id="remove_negative_runoff">
<type>logical</type>
<category>control</category>
<group>MED_attributes</group>
<desc>
If true, remove negative runoff by downweighting all positive runoff globally.
</desc>
<values>
<value>.true.</value>
</values>
</entry>

<entry id="info_debug" modify_via_xml="INFO_DBUG">
<type>integer</type>
Expand Down
6 changes: 5 additions & 1 deletion mediator/med.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1584,7 +1584,7 @@ subroutine DataInitialize(gcomp, rc)
use med_phases_post_lnd_mod , only : med_phases_post_lnd
use med_phases_post_glc_mod , only : med_phases_post_glc
use med_phases_post_ocn_mod , only : med_phases_post_ocn
use med_phases_post_rof_mod , only : med_phases_post_rof
use med_phases_post_rof_mod , only : med_phases_post_rof_init, med_phases_post_rof
use med_phases_post_wav_mod , only : med_phases_post_wav
use med_phases_ocnalb_mod , only : med_phases_ocnalb_run
use med_phases_aofluxes_mod , only : med_phases_aofluxes_init_fldbuns
Expand Down Expand Up @@ -1885,6 +1885,10 @@ subroutine DataInitialize(gcomp, rc)
call med_phases_prep_rof_init(gcomp, rc=rc)
if (ChkErr(rc,__LINE__,u_FILE_u)) return
end if
if (is_local%wrap%comp_present(comprof)) then
call med_phases_post_rof_init(gcomp, rc=rc)
if (ChkErr(rc,__LINE__,u_FILE_u)) return
end if
!---------------------------------------
! Set the data initialize flag to false
!---------------------------------------
Expand Down
Loading

0 comments on commit 9061e7c

Please sign in to comment.