Parse strings that mean units.
95
103 implicit none
104 character(*), intent(in):: str
105 integer:: symbol
106 integer:: unit_str_size, i
107 character(TOKEN):: unit
108continue
109 unit = adjustl(str)
111 do i = 1, unit_str_size
114 return
115 end if
116 end do
117
119 do i = 1, unit_str_size
122 return
123 end if
124 end do
125
127 do i = 1, unit_str_size
130 return
131 end if
132 end do
133
135 do i = 1, unit_str_size
138 return
139 end if
140 end do
141
143 do i = 1, unit_str_size
146 return
147 end if
148 end do
149
151 do i = 1, unit_str_size
154 return
155 end if
156 end do
157
159 do i = 1, unit_str_size
162 return
163 end if
164 end do
165
167
Derived types and parameters for date and time.
character(*), dimension(6), parameter, public unit_month
Strings recognized as month unit
integer, parameter, public unit_symbol_err
Symbol for invalid unit
integer, parameter, public unit_symbol_hour
Symbol for hour unit
integer, parameter, public unit_symbol_min
Symbol for minute unit
integer, parameter, public unit_symbol_month
Symbol for month unit
character(*), dimension(1), parameter, public unit_nondim
Strings recognized as nondimensional unit
integer, parameter, public unit_symbol_sec
Symbol for second unit
integer, parameter, public unit_symbol_nondim
Symbol for nondimensional unit
character(*), dimension(4), parameter, public unit_day
Strings recognized as day unit
character(*), dimension(8), parameter, public unit_sec
Strings recognized as second unit
character(*), dimension(8), parameter, public unit_hour
Strings recognized as hour unit
integer, parameter, public unit_symbol_day
Symbol for day unit
character(*), dimension(4), parameter, public unit_year
Strings recognized as year unit
integer, parameter, public unit_symbol_year
Symbol for year unit
character(*), dimension(4), parameter, public unit_min
Strings recognized as minute unit
Handling character types.
Provides kind type parameter values.
integer, parameter, public token
Character length for word, token