Skip to content

Commit

Permalink
Enforcing system abort when there is negative channel storage
Browse files Browse the repository at this point in the history
  • Loading branch information
liho745 committed Mar 28, 2024
1 parent 7792c63 commit 4f7ae11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/mosart/src/riverroute/MOSART_physics_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -682,8 +682,8 @@ subroutine Euler

! check for negative channel storage
if (negchan < -1.e-10) then
write(iulog,*) 'Warning: Negative channel storage found! ',negchan
! call shr_sys_abort('mosart: negative channel storage')
write(iulog,*) 'Error: Negative channel storage found! ',negchan
call shr_sys_abort('mosart: negative channel storage')
endif
TRunoff%flow = TRunoff%flow / Tctl%DLevelH2R
TRunoff%erowm_regi(:,nt_nmud:nt_nsan) = TRunoff%erowm_regi(:,nt_nmud:nt_nsan) / Tctl%DLevelH2R
Expand Down

0 comments on commit 4f7ae11

Please sign in to comment.