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 to remove negative runoff, backport of #8

Merged
merged 1 commit into from
Oct 18, 2024
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
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