73 class(HeadFileReaderType),
intent(inout) :: this
74 logical,
intent(out) :: success
75 integer(I4B),
intent(in),
optional :: iout
77 integer(I4B) :: iostat, pos
80 select type (h => this%header)
81 type is (headfileheadertype)
88 inquire (unit=this%inunit, pos=h%pos)
89 read (this%inunit, iostat=iostat) h%kstp, h%kper, &
90 h%pertim, h%totim, h%text, h%ncol, h%nrow, h%ilay
93 if (iostat < 0) this%endoffile = .true.
96 inquire (unit=this%inunit, pos=pos)
97 this%header%size = pos - this%header%pos