Skip to content
Merged
Changes from 1 commit
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
15 changes: 8 additions & 7 deletions src/riverroute/mosart_tspatialunit_type.F90
Original file line number Diff line number Diff line change
Expand Up @@ -363,13 +363,14 @@ subroutine Init(this, begr, endr, ntracers, mosart_euler_calc, nlon, nlat, EMesh
if (this%twidth(n) < 0._r8) then
this%twidth(n) = 0._r8
end if
if ( this%tlen(n) > 0._r8 .and. &
(this%rlenTotal(n)-this%rlen(n))/this%tlen(n) > 1._r8 ) then
this%twidth(n) = c_twid(n)*this%twidth(n) * &
((this%rlenTotal(n)-this%rlen(n))/this%tlen(n))
end if
if (this%tlen(n) > 0._r8 .and. this%twidth(n) <= 0._r8) then
this%twidth(n) = 0._r8
if (this%tlen(n) > 0._r8) then
if ((this%rlenTotal(n)-this%rlen(n))/this%tlen(n) > 1._r8) then
this%twidth(n) = c_twid(n)*this%twidth(n) * &
((this%rlenTotal(n)-this%rlen(n))/this%tlen(n))
end if
if (this%twidth(n) < 0._r8) then
this%twidth(n) = 0._r8
end if
end if
else
this%hlen(n) = 0._r8
Expand Down