195
196 type(ObserveType), intent(inout) :: obsrv
197 class(DisBaseType), intent(in) :: dis
198 integer(I4B), intent(in) :: inunitobs
199 integer(I4B), intent(in) :: iout
200
201 integer(I4B) :: nn1, nn2
202 integer(I4B) :: icol, istart, istop, jaidx
203 character(len=LINELENGTH) :: ermsg, string
204
20570 format('Error: No connection exists between cells identified in text: ', a)
206
207
208 string = obsrv%IDstring
209 icol = 1
210
211
212
213 nn1 = dis%noder_from_string(icol, istart, istop, inunitobs, &
214 iout, string, .false.)
215
216 if (nn1 > 0) then
217 obsrv%NodeNumber = nn1
218 else
219 ermsg = 'Error reading data from ID string: '//string(istart:istop)
220 call store_error(ermsg)
221 end if
222
223
224
225 nn2 = dis%noder_from_string(icol, istart, istop, inunitobs, &
226 iout, string, .false.)
227 if (nn2 > 0) then
228 obsrv%NodeNumber2 = nn2
229 else
230 ermsg = 'Error reading data from ID string: '//string(istart:istop)
231 call store_error(ermsg)
232 end if
233
234
235 jaidx = dis%con%getjaindex(nn1, nn2)
236 if (jaidx == 0) then
237 write (ermsg, 70) trim(string)
238 call store_error(ermsg)
239 end if
240 obsrv%JaIndex = jaidx
241
242 if (count_errors() > 0) then
243 call store_error_unit(inunitobs)
244 end if