93 class(Integer2dReaderType) :: this
94 integer(I4B) :: i, j
95 integer(I4B) :: nvals
96 integer(I4B) :: istat
97 integer(I4B) :: expected_size
98 expected_size = binary_header_bytes + (size(this%int2d) * binary_int_bytes)
99 call read_binary_header(this%input_unit, this%iout, this%array_name, nvals)
100 call check_binary_filesize(this%input_unit, expected_size, this%array_name)
101 read (this%input_unit, iostat=istat, iomsg=errmsg) &
102 ((this%int2d(j, i), j=1, size(this%int2d, dim=1)), &
103 i=1, size(this%int2d, dim=2))
104 if (istat /= 0) then
105 errmsg = 'Error reading data for array '//trim(this%array_name)// &
106 '. '//trim(errmsg)
107 call store_error(errmsg)
108 call store_error_unit(this%input_unit)
109 end if