25 integer(I4B) :: structarray_col
28 character(LINELENGTH) :: token
41 integer(I4B) :: memtype = 0
42 integer(I4B) :: icol = 0
43 integer(I4B) :: size = 0
45 integer(I4B),
dimension(:),
pointer,
contiguous :: int1d => null()
46 integer(I4B),
dimension(:, :),
pointer,
contiguous :: int2d => null()
47 real(dp),
dimension(:),
pointer,
contiguous :: dbl1d => null()
48 real(dp),
dimension(:, :),
pointer,
contiguous :: dbl2d => null()
53 integer(I4B),
pointer :: intshape => null()
54 integer(I4B),
dimension(:),
pointer,
contiguous :: intvector_shape => null()
66 function sv_read_token(this, token, structarray_col, col, row)
result(val)
70 character(len=*),
intent(in) :: token
71 integer(I4B),
intent(in) :: structarray_col
72 integer(I4B),
intent(in) :: col
73 integer(I4B),
intent(in) :: row
82 read (token, *, iostat=istat) r
86 call this%add_ts_strloc(token, structarray_col, col, row)
93 character(len=*),
intent(in) :: token
94 integer(I4B),
intent(in) :: structarray_col
95 integer(I4B),
intent(in) :: col
96 integer(I4B),
intent(in) :: row
99 class(*),
pointer :: obj
103 str_field%structarray_col = structarray_col
106 str_field%token = token
109 call this%ts_strlocs%Add(obj)
115 integer(I4B),
intent(in) :: idx
118 class(*),
pointer :: obj
124 obj => this%ts_strlocs%GetItem(idx)
125 if (
associated(obj))
then
142 do n = 1, this%ts_strlocs%Count()
143 ts_strloc => this%get_ts_strloc(n)
144 deallocate (ts_strloc)
148 call this%ts_strlocs%Clear()
This module contains simulation constants.
integer(i4b), parameter linelength
maximum length of a standard line
real(dp), parameter dnodata
real no data constant
integer(i4b), parameter lentimeseriesname
maximum length of a time series name
integer(i4b), parameter lenvarname
maximum length of a variable name
integer(i4b), parameter lenmempath
maximum length of the memory path
This module defines variable data types.
This module contains the StructVectorModule.
class(tsstringloctype) function, pointer sv_get_ts_strloc(this, idx)
real(dp) function sv_read_token(this, token, structarray_col, col, row)
subroutine sv_add_ts_strloc(this, token, structarray_col, col, row)
subroutine sv_clear(this)
This class is used to store a single deferred-length character string. It was designed to work in an ...
A generic heterogeneous doubly-linked list.
derived type for generic vector
derived type which describes time series string field