MODFLOW 6  version 6.6.0.dev0
USGS Modular Hydrologic Model
double1dreadermodule Module Reference

Data Types

type  double1dreadertype
 

Functions/Subroutines

subroutine, public read_dbl1d (parser, dbl1d, aname)
 
subroutine reset_reader (this)
 
subroutine set_constant (this)
 
subroutine fill_constant (this)
 
subroutine read_ascii (this)
 
subroutine read_binary (this)
 
subroutine set_factor (this)
 
subroutine apply_factor (this)
 

Function/Subroutine Documentation

◆ apply_factor()

subroutine double1dreadermodule::apply_factor ( class(double1dreadertype this)
private

Definition at line 106 of file Double1dReader.f90.

107  class(Double1dReaderType) :: this
108  integer(I4B) :: i
109  if (this%factor /= dzero) then
110  do i = 1, size(this%dbl1d)
111  this%dbl1d(i) = this%dbl1d(i) * this%factor
112  end do
113  end if

◆ fill_constant()

subroutine double1dreadermodule::fill_constant ( class(double1dreadertype this)
private

Definition at line 63 of file Double1dReader.f90.

64  class(Double1dReaderType) :: this
65  integer(I4B) :: i
66  do i = 1, size(this%dbl1d)
67  this%dbl1d(i) = this%constant_array_value
68  end do

◆ read_ascii()

subroutine double1dreadermodule::read_ascii ( class(double1dreadertype this)
private

Definition at line 71 of file Double1dReader.f90.

72  class(Double1dReaderType) :: this
73  integer(I4B) :: i
74  integer(I4B) :: istat
75  read (this%input_unit, *, iostat=istat, iomsg=errmsg) &
76  (this%dbl1d(i), i=1, size(this%dbl1d))
77  if (istat /= 0) then
78  errmsg = 'Error reading data for array '//trim(this%array_name)// &
79  '. '//trim(errmsg)
80  call store_error(errmsg)
81  call store_error_unit(this%input_unit)
82  end if
Here is the call graph for this function:

◆ read_binary()

subroutine double1dreadermodule::read_binary ( class(double1dreadertype this)
private

Definition at line 85 of file Double1dReader.f90.

86  class(Double1dReaderType) :: this
87  integer(I4B) :: i
88  integer(I4B) :: nvals
89  integer(I4B) :: istat
90  call read_binary_header(this%input_unit, this%iout, this%array_name, nvals)
91  read (this%input_unit, iostat=istat, iomsg=errmsg) &
92  (this%dbl1d(i), i=1, size(this%dbl1d))
93  if (istat /= 0) then
94  errmsg = 'Error reading data for array '//trim(this%array_name)// &
95  '. '//trim(errmsg)
96  call store_error(errmsg)
97  call store_error_unit(this%input_unit)
98  end if
Here is the call graph for this function:

◆ read_dbl1d()

subroutine, public double1dreadermodule::read_dbl1d ( type(blockparsertype), intent(in), target  parser,
real(dp), dimension(:), target, contiguous  dbl1d,
character(len=*), intent(in)  aname 
)

Definition at line 35 of file Double1dReader.f90.

36  ! -- dummy
37  type(BlockParserType), intent(in), target :: parser
38  real(DP), dimension(:), contiguous, target :: dbl1d
39  character(len=*), intent(in) :: aname
40  ! -- local
41  type(Double1dReaderType) :: this
42 
43  this%parser => parser
44  this%dbl1d => dbl1d
45  this%array_name = aname
46 
47  call this%read_array()
48 
Here is the caller graph for this function:

◆ reset_reader()

subroutine double1dreadermodule::reset_reader ( class(double1dreadertype this)
private

Definition at line 51 of file Double1dReader.f90.

52  class(Double1dReaderType) :: this
53  call this%ArrayReaderBaseType%reset_reader()
54  this%constant_array_value = dzero
55  this%factor = done

◆ set_constant()

subroutine double1dreadermodule::set_constant ( class(double1dreadertype this)
private

Definition at line 58 of file Double1dReader.f90.

59  class(Double1dReaderType) :: this
60  this%constant_array_value = this%parser%GetDouble()

◆ set_factor()

subroutine double1dreadermodule::set_factor ( class(double1dreadertype this)
private

Definition at line 101 of file Double1dReader.f90.

102  class(Double1dReaderType) :: this
103  this%factor = this%parser%GetDouble()