196 type(ObserveType),
intent(inout) :: obsrv
197 class(DisBaseType),
intent(in) :: dis
198 integer(I4B),
intent(in) :: inunitobs
199 integer(I4B),
intent(in) :: iout
201 integer(I4B) :: nn1, nn2
202 integer(I4B) :: icol, istart, istop, jaidx
203 character(len=LINELENGTH) :: ermsg, string
205 70
format(
'Error: No connection exists between cells identified in text: ', a)
208 string = obsrv%IDstring
213 nn1 = dis%noder_from_string(icol, istart, istop, inunitobs, &
214 iout, string, .false.)
217 obsrv%NodeNumber = nn1
219 ermsg =
'Error reading data from ID string: '//string(istart:istop)
220 call store_error(ermsg)
225 nn2 = dis%noder_from_string(icol, istart, istop, inunitobs, &
226 iout, string, .false.)
228 obsrv%NodeNumber2 = nn2
230 ermsg =
'Error reading data from ID string: '//string(istart:istop)
231 call store_error(ermsg)
235 jaidx = dis%con%getjaindex(nn1, nn2)
237 write (ermsg, 70) trim(string)
238 call store_error(ermsg)
240 obsrv%JaIndex = jaidx
242 if (count_errors() > 0)
then
243 call store_error_unit(inunitobs)