98
102
103 class(RectangularGeometryType) :: this
104 character(len=LINELENGTH) :: errmsg
105 character(len=*), intent(inout) :: line
106
107 integer(I4B) :: lloc, istart, istop, ival
108 real(DP) :: rval
109
110
111 lloc = 1
112 call urword(line, lloc, istart, istop, 2, ival, rval, 0, 0)
113 this%id = ival
114
115
116 call urword(line, lloc, istart, istop, 1, ival, rval, 0, 0)
117 select case (line(istart:istop))
118 case ('NAME')
119 call urword(line, lloc, istart, istop, 1, ival, rval, 0, 0)
120 this%name = line(istart:istop)
121 case ('HEIGHT')
122 call urword(line, lloc, istart, istop, 3, ival, rval, 0, 0)
123 this%height = rval
124 case ('WIDTH')
125 call urword(line, lloc, istart, istop, 3, ival, rval, 0, 0)
126 this%width = rval
127 case default
128 write (errmsg, '(a,a)') &
129 'Unknown rectangular geometry attribute: ', line(istart:istop)
131 end select
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.