Skip to content

Commit

Permalink
Merge pull request #471 from billsacks/remove_negative_runoff
Browse files Browse the repository at this point in the history
Remove negative runoff
  • Loading branch information
jedwards4b authored Jun 26, 2024
2 parents b2cb575 + 4c5996e commit c5973fd
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 @@ -872,6 +872,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 @@ -1622,7 +1622,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 @@ -1924,6 +1924,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 c5973fd

Please sign in to comment.