Skip to content

Commit

Permalink
Add note that threshold only works for direct_in_place option, abort …
Browse files Browse the repository at this point in the history
…in code if this happens
  • Loading branch information
ekluzek committed Nov 12, 2022
1 parent e227372 commit 3a63547
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions cime_config/namelist_definition_mosart.xml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@
</values>
<desc>
Method for handling of qgwl runoff inputs.
(threshold is only valid for bypass_routing_option=direct_in_place)
</desc>
</entry>

Expand Down
6 changes: 6 additions & 0 deletions src/riverroute/RtmMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,12 @@ subroutine Rtminit_namelist(flood_active)
endif
end if

if (trim(bypass_routing_option) == 'direct_to_outlet') then
if (trim(qgwl_runoff_option) == 'threshold') then
call shr_sys_abort( subname//' ERROR: bypass_routing_option can NOT be threshold if bypass_routing_option==direct_to_outlet' )
end if
end if

if (coupling_period <= 0) then
write(iulog,*) subname,' ERROR MOSART coupling_period invalid',coupling_period
call shr_sys_abort( subname//' ERROR: coupling_period invalid' )
Expand Down

0 comments on commit 3a63547

Please sign in to comment.