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