24 integer(I4B) :: structarray_col
27 character(LINELENGTH) :: token
40 integer(I4B) :: memtype = 0
41 integer(I4B) :: icol = 0
42 integer(I4B) :: size = 0
44 integer(I4B),
dimension(:),
pointer,
contiguous :: int1d => null()
45 integer(I4B),
dimension(:, :),
pointer,
contiguous :: int2d => null()
46 real(dp),
dimension(:),
pointer,
contiguous :: dbl1d => null()
47 real(dp),
dimension(:, :),
pointer,
contiguous :: dbl2d => null()
52 integer(I4B),
pointer :: intshape => null()
53 integer(I4B),
dimension(:),
pointer,
contiguous :: intvector_shape => null()
65 function sv_read_token(this, token, structarray_col, col, row)
result(val)
67 character(len=*),
intent(in) :: token
68 integer(I4B),
intent(in) :: structarray_col
69 integer(I4B),
intent(in) :: col
70 integer(I4B),
intent(in) :: row
76 read (token, *, iostat=istat) r
80 call this%add_ts_strloc(token, structarray_col, col, row)
86 character(len=*),
intent(in) :: token
87 integer(I4B),
intent(in) :: structarray_col
88 integer(I4B),
intent(in) :: col
89 integer(I4B),
intent(in) :: row
91 class(*),
pointer :: obj
93 str_field%structarray_col = structarray_col
96 str_field%token = token
98 call this%ts_strlocs%Add(obj)
103 integer(I4B),
intent(in) :: idx
105 class(*),
pointer :: obj
109 obj => this%ts_strlocs%GetItem(idx)
110 if (
associated(obj))
then
124 do n = 1, this%ts_strlocs%Count()
125 ts_strloc => this%get_ts_strloc(n)
126 deallocate (ts_strloc)
129 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