6 SUBROUTINE pgd_teb_irrig (DTCO, UG, U, USS, KDIM, TIR, HPROGRAM)
55 USE modi_open_namelist
56 USE modi_close_namelist
75 TYPE(
sso_t),
INTENT(INOUT) :: USS
76 INTEGER,
INTENT(IN) :: KDIM
79 CHARACTER(LEN=6),
INTENT(IN) :: HPROGRAM
88 LOGICAL :: GNO_PAR_GD_IRRIG
89 LOGICAL :: GNO_PAR_GR_IRRIG
90 LOGICAL :: GNO_PAR_RD_IRRIG
99 REAL :: XUNIF_GD_START_MONTH
100 REAL :: XUNIF_GD_END_MONTH
101 REAL :: XUNIF_GD_START_HOUR
102 REAL :: XUNIF_GD_END_HOUR
103 REAL :: XUNIF_GD_24H_IRRIG
104 REAL :: XUNIF_GR_START_MONTH
105 REAL :: XUNIF_GR_END_MONTH
106 REAL :: XUNIF_GR_START_HOUR
107 REAL :: XUNIF_GR_END_HOUR
108 REAL :: XUNIF_GR_24H_IRRIG
109 REAL :: XUNIF_RD_START_MONTH
110 REAL :: XUNIF_RD_END_MONTH
111 REAL :: XUNIF_RD_START_HOUR
112 REAL :: XUNIF_RD_END_HOUR
113 REAL :: XUNIF_RD_24H_IRRIG
117 CHARACTER(LEN=28) :: CFNAM_GD_START_MONTH
118 CHARACTER(LEN=28) :: CFNAM_GD_END_MONTH
119 CHARACTER(LEN=28) :: CFNAM_GD_START_HOUR
120 CHARACTER(LEN=28) :: CFNAM_GD_END_HOUR
121 CHARACTER(LEN=28) :: CFNAM_GD_24H_IRRIG
122 CHARACTER(LEN=28) :: CFNAM_GR_START_MONTH
123 CHARACTER(LEN=28) :: CFNAM_GR_END_MONTH
124 CHARACTER(LEN=28) :: CFNAM_GR_START_HOUR
125 CHARACTER(LEN=28) :: CFNAM_GR_END_HOUR
126 CHARACTER(LEN=28) :: CFNAM_GR_24H_IRRIG
127 CHARACTER(LEN=28) :: CFNAM_RD_START_MONTH
128 CHARACTER(LEN=28) :: CFNAM_RD_END_MONTH
129 CHARACTER(LEN=28) :: CFNAM_RD_START_HOUR
130 CHARACTER(LEN=28) :: CFNAM_RD_END_HOUR
131 CHARACTER(LEN=28) :: CFNAM_RD_24H_IRRIG
135 CHARACTER(LEN=28) :: CFTYP_GD_START_MONTH
136 CHARACTER(LEN=28) :: CFTYP_GD_END_MONTH
137 CHARACTER(LEN=28) :: CFTYP_GD_START_HOUR
138 CHARACTER(LEN=28) :: CFTYP_GD_END_HOUR
139 CHARACTER(LEN=28) :: CFTYP_GD_24H_IRRIG
140 CHARACTER(LEN=28) :: CFTYP_GR_START_MONTH
141 CHARACTER(LEN=28) :: CFTYP_GR_END_MONTH
142 CHARACTER(LEN=28) :: CFTYP_GR_START_HOUR
143 CHARACTER(LEN=28) :: CFTYP_GR_END_HOUR
144 CHARACTER(LEN=28) :: CFTYP_GR_24H_IRRIG
145 CHARACTER(LEN=28) :: CFTYP_RD_START_MONTH
146 CHARACTER(LEN=28) :: CFTYP_RD_END_MONTH
147 CHARACTER(LEN=28) :: CFTYP_RD_START_HOUR
148 CHARACTER(LEN=28) :: CFTYP_RD_END_HOUR
149 CHARACTER(LEN=28) :: CFTYP_RD_24H_IRRIG
151 REAL(KIND=JPRB) :: ZHOOK_HANDLE
153 NAMELIST/nam_data_teb_irrig / xunif_gd_start_month, &
154 xunif_gd_end_month, &
155 xunif_gd_start_hour, &
157 xunif_gd_24h_irrig, &
158 xunif_gr_start_month, &
159 xunif_gr_end_month, &
160 xunif_gr_start_hour, &
162 xunif_gr_24h_irrig, &
163 xunif_rd_start_month, &
164 xunif_rd_end_month, &
165 xunif_rd_start_hour, &
167 xunif_rd_24h_irrig, &
168 cfnam_gd_start_month, &
169 cfnam_gd_end_month , &
170 cfnam_gd_start_hour, &
172 cfnam_gd_24h_irrig, &
173 cfnam_gr_start_month, &
174 cfnam_gr_end_month , &
175 cfnam_gr_start_hour, &
177 cfnam_gr_24h_irrig, &
178 cfnam_rd_start_month, &
179 cfnam_rd_end_month , &
180 cfnam_rd_start_hour, &
182 cfnam_rd_24h_irrig, &
183 cftyp_gd_start_month, &
184 cftyp_gd_end_month, &
185 cftyp_gd_start_hour, &
187 cftyp_gd_24h_irrig, &
188 cftyp_gr_start_month, &
189 cftyp_gr_end_month, &
190 cftyp_gr_start_hour, &
192 cftyp_gr_24h_irrig, &
193 cftyp_rd_start_month, &
194 cftyp_rd_end_month, &
195 cftyp_rd_start_hour, &
207 xunif_gd_start_month=
xundef 208 xunif_gd_end_month =
xundef 209 xunif_gd_start_hour =
xundef 210 xunif_gd_end_hour =
xundef 211 xunif_gd_24h_irrig =
xundef 212 xunif_gr_start_month=
xundef 213 xunif_gr_end_month =
xundef 214 xunif_gr_start_hour =
xundef 215 xunif_gr_end_hour =
xundef 216 xunif_gr_24h_irrig =
xundef 217 xunif_rd_start_month=
xundef 218 xunif_rd_end_month =
xundef 219 xunif_rd_start_hour =
xundef 220 xunif_rd_end_hour =
xundef 221 xunif_rd_24h_irrig =
xundef 262 CALL posnam(ilunam,
'NAM_DATA_TEB_IRRIG',gfound,iluout)
263 IF (gfound)
READ(unit=ilunam,nml=nam_data_teb_irrig)
272 tir%LPAR_GD_IRRIG = (xunif_gd_start_month /=
xundef .OR. len_trim(cfnam_gd_start_month
284 IF ( .NOT. tir%LPAR_GD_IRRIG .AND. .NOT. gno_par_gd_irrig)
THEN 285 WRITE(iluout,*)
' Error for prescription of irrigation in gardens ' 286 WRITE(iluout,*)
' You need to specify the five parameters ... or none. ' 287 CALL abor1_sfx(
'Namelist NAM_DATA_TEB_IRRIG: you need to specify ALL of parameters for GARDEN or NONE of them' 291 IF (tir%LPAR_GD_IRRIG)
THEN 293 ALLOCATE(tir%XGD_START_MONTH (kdim ))
294 ALLOCATE(tir%XGD_END_MONTH (kdim ))
295 ALLOCATE(tir%XGD_START_HOUR (kdim ))
296 ALLOCATE(tir%XGD_END_HOUR (kdim ))
297 ALLOCATE(tir%XGD_24H_IRRIG (kdim ))
307 hprogram,
'GD_START_MONTH : start month for irrigation of gardens''TWN' 310 hprogram,
'GD_END_MONTH : end month for irrigation of gardens''TWN' 313 hprogram,
'GD_START_HOUR : start HOUR for irrigation of gardens''TWN' 316 hprogram,
'GD_END_HOUR : end HOUR for irrigation of gardens''TWN' 320 hprogram,
'GD_24H_IRRIG : total irrigation over 24h for gardens''TWN' 330 tir%LPAR_GR_IRRIG = (xunif_gr_start_month /=
xundef .OR. len_trim(cfnam_gr_start_month
342 IF ( .NOT. tir%LPAR_GR_IRRIG .AND. .NOT. gno_par_gr_irrig)
THEN 343 WRITE(iluout,*)
' Error for prescription of irrigation in greenroofs ' 344 WRITE(iluout,*)
' You need to specify the five parameters ... or none. ' 345 CALL abor1_sfx(
'Namelist NAM_DATA_TEB_IRRIG: you need to specify ALL of parameters for GREENROOFS or NONE of them' 349 IF (tir%LPAR_GR_IRRIG)
THEN 351 ALLOCATE(tir%XGR_START_MONTH (kdim ))
352 ALLOCATE(tir%XGR_END_MONTH (kdim ))
353 ALLOCATE(tir%XGR_START_HOUR (kdim ))
354 ALLOCATE(tir%XGR_END_HOUR (kdim ))
355 ALLOCATE(tir%XGR_24H_IRRIG (kdim ))
365 hprogram,
'GR_START_MONTH : start month for irrigation of greenroofs''TWN' 368 hprogram,
'GR_END_MONTH : end month for irrigation of greenroofs''TWN' 371 hprogram,
'GR_START_HOUR : start HOUR for irrigation of greenroofs''TWN' 374 hprogram,
'GR_END_HOUR : end HOUR for irrigation of greenroofs''TWN' 378 hprogram,
'GR_24H_IRRIG : total irrigation over 24h for greenroofs''TWN' 387 tir%LPAR_RD_IRRIG = (xunif_rd_start_month /=
xundef .OR. len_trim(cfnam_rd_start_month
399 IF ( .NOT. tir%LPAR_RD_IRRIG .AND. .NOT. gno_par_rd_irrig)
THEN 400 WRITE(iluout,*)
' Error for prescription of irrigation on roads ' 401 WRITE(iluout,*)
' You need to specify the five parameters ... or none. ' 402 CALL abor1_sfx(
'Namelist NAM_DATA_TEB_IRRIG: you need to specify ALL of parameters for ROADS or NONE of them' 406 IF (tir%LPAR_RD_IRRIG)
THEN 408 ALLOCATE(tir%XRD_START_MONTH (kdim ))
409 ALLOCATE(tir%XRD_END_MONTH (kdim ))
410 ALLOCATE(tir%XRD_START_HOUR (kdim ))
411 ALLOCATE(tir%XRD_END_HOUR (kdim ))
412 ALLOCATE(tir%XRD_24H_IRRIG (kdim ))
422 hprogram,
'RD_START_MONTH : start month for irrigation of roads''TWN' 425 hprogram,
'RD_END_MONTH : end month for irrigation of roads''TWN' 428 hprogram,
'RD_START_HOUR : start HOUR for irrigation of roads''TWN' 431 hprogram,
'RD_END_HOUR : end HOUR for irrigation of roads''TWN' 435 hprogram,
'RD_24H_IRRIG : total irrigation over 24h for roads''TWN'
subroutine posnam(KULNAM, HDNAML, OFOUND, KLUOUT)
subroutine abor1_sfx(YTEXT)
subroutine close_namelist(HPROGRAM, KLUNAM)
subroutine pgd_teb_irrig(DTCO, UG, U, USS, KDIM, TIR, HPROGRAM)
subroutine get_luout(HPROGRAM, KLUOUT)
subroutine open_namelist(HPROGRAM, KLUNAM, HFILE)