Parse units.
99
107 implicit none
108 character(*), intent(in):: unit_str
109 integer, intent(out):: unit_sym
110 logical, intent(out), optional:: err
111
112
113
114
115 integer:: stat
116 character(STRING):: cause_c
117 character(*), parameter:: subname = 'DCCalParseUnit1'
118continue
121 cause_c = ''
122
123
124
125
127
128
129
130
132 call messagenotify(
'W', subname,
'unit_str=<%c> is invalid. (ONLY day,hour,min,sec are valid)', &
133 & c1 = trim(unit_str) )
135 goto 999
136 end if
137
138
139
140
141999 continue
142 call storeerror( stat, subname, err, cause_c )
Internal module for dc_calendar.
integer function, public dccaldate_str2usym(str)
Derived types and parameters of calendar and date.
integer, parameter, public unit_symbol_err
subroutine, public storeerror(number, where, err, cause_c, cause_i)
integer, parameter, public dc_ebadunit
integer, parameter, public dc_noerr
Error storage variables
Handling character types.
subroutine, public beginsub(name, fmt, i, r, d, l, n, c1, c2, c3, ca, version)
subroutine, public endsub(name, fmt, i, r, d, l, n, c1, c2, c3, ca)
Provides kind type parameter values.
integer, parameter, public string
Character length for string