20 integer(I4B) :: constant_array_value =
dzero
21 integer(I4B) :: factor =
done
22 integer(I4B),
dimension(:, :),
contiguous,
pointer :: int2d => null()
41 integer(I4B),
dimension(:, :),
contiguous,
target :: int2d
42 character(len=*),
intent(in) :: aname
48 this%array_name = aname
50 call this%read_array()
56 call this%ArrayReaderBaseType%reset_reader()
57 this%constant_array_value = 0
63 this%constant_array_value = this%parser%GetInteger()
69 do i = 1,
size(this%int2d, dim=2)
70 do j = 1,
size(this%int2d, dim=1)
71 this%int2d(j, i) = this%constant_array_value
80 do i = 1,
size(this%int2d, dim=2)
81 read (this%input_unit, *, iostat=istat, iomsg=
errmsg) &
82 (this%int2d(j, i), j=1,
size(this%int2d, dim=1))
85 errmsg =
'Error reading data for array '//trim(this%array_name)// &
97 integer(I4B) :: expected_size
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))
105 errmsg =
'Error reading data for array '//trim(this%array_name)// &
114 this%factor = this%parser%GetInteger()
120 if (this%factor /=
dzero)
then
121 do i = 1,
size(this%int2d, dim=2)
122 do j = 1,
size(this%int2d, dim=1)
123 this%int2d(j, i) = this%int2d(j, i) * this%factor
subroutine, public read_binary_header(locat, iout, arrname, nval)
subroutine, public check_binary_filesize(locat, expected_size, arrname)
integer(i4b), parameter, public binary_int_bytes
integer(i4b), parameter, public binary_header_bytes
array text
This module contains block parser methods.
This module contains simulation constants.
real(dp), parameter dzero
real constant zero
real(dp), parameter done
real constant 1
subroutine, public read_int2d(parser, int2d, aname)
subroutine apply_factor(this)
subroutine reset_reader(this)
subroutine fill_constant(this)
subroutine read_binary(this)
subroutine set_constant(this)
subroutine read_ascii(this)
subroutine set_factor(this)
This module defines variable data types.
This module contains simulation methods.
subroutine, public store_error(msg, terminate)
Store an error message.
subroutine, public store_error_unit(iunit, terminate)
Store the file unit number.
This module contains simulation variables.
character(len=maxcharlen) errmsg
error message string