Skip to content

Commit

Permalink
fix(gwf3lak8): error trap for outlet lakein incorrectly compared agai…
Browse files Browse the repository at this point in the history
…nst noutlet instead of nlak (#214)

Addresses issue #200
  • Loading branch information
langevin-usgs committed Oct 10, 2019
1 parent 950f875 commit f8fa300
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Model/GroundWaterFlow/gwf3lak8.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1396,10 +1396,10 @@ subroutine lak_read_outlets(this)
!
! -- read outlet lakein
ival = this%parser%GetInteger()
if (ival <1 .or. ival > this%noutlets) then
if (ival <1 .or. ival > this%nlakes) then
write(errmsg,'(4x,a,1x,i4,1x,a,1x,i6)') &
'****ERROR. lakein FOR OUTLET ', n, 'MUST BE > 0 and <= ', &
this%noutlets
this%nlakes
call store_error(errmsg)
cycle readoutlet
end if
Expand All @@ -1410,7 +1410,7 @@ subroutine lak_read_outlets(this)
if (ival <0 .or. ival > this%nlakes) then
write(errmsg,'(4x,a,1x,i4,1x,a,1x,i6)') &
'****ERROR. lakeout FOR OUTLET ', n, 'MUST BE >= 0 and <= ', &
this%noutlets
this%nlakes
call store_error(errmsg)
cycle readoutlet
end if
Expand Down

0 comments on commit f8fa300

Please sign in to comment.