210
211 type(ObserveType), intent(inout) :: obsrv
212 class(DisBaseType), intent(in) :: dis
213 integer(I4B), intent(in) :: inunitobs
214 integer(I4B), intent(in) :: iout
215
216 integer(I4B) :: nn1, nn2
217 integer(I4B) :: icol, istart, istop, jaidx
218 character(len=LINELENGTH) :: ermsg, string
219
22070 format('Error: No connection exists between cells identified in text: ', a)
221
222
223 string = obsrv%IDstring
224 icol = 1
225
226
227
228 nn1 = dis%noder_from_string(icol, istart, istop, inunitobs, &
229 iout, string, .false.)
230
231 if (nn1 > 0) then
232 obsrv%NodeNumber = nn1
233 else
234 ermsg = 'Error reading data from ID string: '//string(istart:istop)
235 call store_error(ermsg)
236 end if
237
238
239
240 nn2 = dis%noder_from_string(icol, istart, istop, inunitobs, &
241 iout, string, .false.)
242 if (nn2 > 0) then
243 obsrv%NodeNumber2 = nn2
244 else
245 ermsg = 'Error reading data from ID string: '//string(istart:istop)
246 call store_error(ermsg)
247 end if
248
249
250 jaidx = dis%con%getjaindex(nn1, nn2)
251 if (jaidx == 0) then
252 write (ermsg, 70) trim(string)
253 call store_error(ermsg)
254 end if
255 obsrv%JaIndex = jaidx
256
257 if (count_errors() > 0) then
258 call store_error_unit(inunitobs)
259 end if