Skip to content

Commit

Permalink
Reduce log messages about negative channel loss
Browse files Browse the repository at this point in the history
  • Loading branch information
rcabell committed Jan 6, 2025
1 parent 60069cc commit 041bda0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/Routing/module_channel_routing.F90
Original file line number Diff line number Diff line change
Expand Up @@ -508,12 +508,10 @@ subroutine SUBMUSKINGCUNGE( &
!TML:Added print statement to test qlos function;
!comment out to prevent excessive file sizes when running model
!print*, "qloss,dx,WP,WPk,depth,ChannK,qdc,ql,dt,D", qloss,dx,WP,WPk,depth,ChannK,qdc,ql,dt,D
if (ChannK /= 0) then
if((qloss*dt)/D > ((ql*dt)/D - C4)) then
qloss = ql - C4*(D/dt)
if (qloss < 0) then
print*, 'WARNING CHANNEL LOSS IS NEGATIVE',qloss
endif
if((qloss*dt)/D > ((ql*dt)/D - C4)) then
qloss = ql - C4*(D/dt)
if ((qloss < 0) .and. (ChannK /= 0)) then
print*, 'WARNING CHANNEL LOSS IS NEGATIVE',qloss
endif
endif

Expand Down

0 comments on commit 041bda0

Please sign in to comment.