111
115
116 class(CircularGeometryType) :: this
117 character(len=LINELENGTH) :: errmsg
118 character(len=*), intent(inout) :: line
119
120 integer(I4B) :: lloc, istart, istop, ival
121 real(DP) :: rval
122
123
124 lloc = 1
125 call urword(line, lloc, istart, istop, 2, ival, rval, 0, 0)
126 this%id = ival
127
128
129 call urword(line, lloc, istart, istop, 1, ival, rval, 0, 0)
130 select case (line(istart:istop))
131 case ('NAME')
132 call urword(line, lloc, istart, istop, 1, ival, rval, 0, 0)
133 this%name = line(istart:istop)
134 case ('RADIUS')
135 call urword(line, lloc, istart, istop, 3, ival, rval, 0, 0)
136 this%radius = rval
137 case default
138 write (errmsg, '(a,a)') &
139 'Unknown circular geometry attribute: ', line(istart:istop)
141 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.