20 real(dp) :: constant_array_value =
dzero
22 real(dp),
dimension(:),
contiguous,
pointer :: dbl1d => null()
41 real(dp),
dimension(:),
contiguous,
target :: dbl1d
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 =
dzero
63 this%constant_array_value = this%parser%GetDouble()
69 do i = 1,
size(this%dbl1d)
70 this%dbl1d(i) = this%constant_array_value
78 read (this%input_unit, *, iostat=istat, iomsg=
errmsg) &
79 (this%dbl1d(i), i=1,
size(this%dbl1d))
81 errmsg =
'Error reading data for array '//trim(this%array_name)// &
93 integer(I4B) :: expected_size
97 read (this%input_unit, iostat=istat, iomsg=
errmsg) &
98 (this%dbl1d(i), i=1,
size(this%dbl1d))
100 errmsg =
'Error reading data for array '//trim(this%array_name)// &
109 this%factor = this%parser%GetDouble()
115 if (this%factor /=
dzero)
then
116 do i = 1,
size(this%dbl1d)
117 this%dbl1d(i) = this%dbl1d(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_header_bytes
array text
integer(i4b), parameter, public binary_double_bytes
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 apply_factor(this)
subroutine set_constant(this)
subroutine set_factor(this)
subroutine, public read_dbl1d(parser, dbl1d, aname)
subroutine reset_reader(this)
subroutine read_binary(this)
subroutine fill_constant(this)
subroutine read_ascii(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