186
189
190 class(GhbType), intent(inout) :: this
191
192 character(len=LINELENGTH) :: errmsg
193 integer(I4B) :: i
194 integer(I4B) :: node
195 real(DP) :: bt
196
197 character(len=*), parameter :: fmtghberr = &
198 "('GHB BOUNDARY (',i0,') HEAD (',f10.3,') IS LESS THAN CELL &
199 &BOTTOM (',f10.3,')')"
200 character(len=*), parameter :: fmtcondmulterr = &
201 "('GHB BOUNDARY (',i0,') CONDUCTANCE MULTIPLIER (',g10.3,') IS &
202 &LESS THAN ZERO')"
203 character(len=*), parameter :: fmtconderr = &
204 "('GHB BOUNDARY (',i0,') CONDUCTANCE (',g10.3,') IS LESS THAN &
205 &ZERO')"
206
207
208 do i = 1, this%nbound
209 node = this%nodelist(i)
210 if (node == 0) cycle
211 bt = this%dis%bot(node)
212
213 if (this%bhead(i) < bt .and. this%icelltype(node) /= 0) then
214 write (errmsg, fmt=fmtghberr) i, this%bhead(i), bt
216 end if
217 if (this%iauxmultcol > 0) then
218 if (this%auxvar(this%iauxmultcol, i) <
dzero)
then
219 write (errmsg, fmt=fmtcondmulterr) &
220 i, this%auxvar(this%iauxmultcol, i)
222 end if
223 end if
224 if (this%cond(i) <
dzero)
then
225 write (errmsg, fmt=fmtconderr) i, this%cond(i)
227 end if
228 end do
229
230
233 end if
integer(i4b), parameter linelength
maximum length of a standard line
This module contains simulation methods.
subroutine, public store_error(msg, terminate)
Store an error message.
integer(i4b) function, public count_errors()
Return number of errors.
subroutine, public store_error_unit(iunit, terminate)
Store the file unit number.