93 class(Double2dReaderType) :: this
97 integer(I4B) :: expected_size
98 expected_size = binary_header_bytes + (
size(this%dbl2d) * binary_double_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%dbl2d(j, i), j=1,
size(this%dbl2d, dim=1)), &
103 i=1,
size(this%dbl2d, dim=2))
105 errmsg =
'Error reading data for array '//trim(this%array_name)// &
107 call store_error(errmsg)
108 call store_error_unit(this%input_unit)