Changeset 1484 for palm/trunk/SOURCE/package_parin.f90
- Timestamp:
- Oct 21, 2014 10:53:05 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/package_parin.f90
r1368 r1484 20 20 ! Current revisions: 21 21 ! ----------------- 22 ! 22 ! Changes due to new module structure of the plant canopy model: 23 ! module plant_canopy_model_mod added, 24 ! new package/namelist canopy_par added, i.e. the canopy model is no longer 25 ! steered over the inipar-namelist, 26 ! drag_coefficient, leaf_surface_concentration and scalar_exchange_coefficient 27 ! renamed to canopy_drag_coeff, leaf_surface_conc and leaf_scalar_exch_coeff. 28 ! Changed statement tags in CONTINUE-statement 23 29 ! 24 30 ! Former revisions: … … 103 109 write_particle_statistics 104 110 111 USE plant_canopy_model_mod, & 112 ONLY: alpha_lad, beta_lad, calc_beta_lad_profile, canopy_drag_coeff, & 113 canopy_mode, cthf, lad_surface, & 114 lad_vertical_gradient, lad_vertical_gradient_level, lai_beta, & 115 leaf_scalar_exch_coeff, leaf_surface_conc, pch_index, & 116 plant_canopy 117 105 118 USE spectrum, & 106 119 ONLY: comp_spectra_level, data_output_sp, plot_spectra_level, & … … 110 123 111 124 CHARACTER (LEN=80) :: line !: 125 126 NAMELIST /canopy_par/ alpha_lad, beta_lad, canopy_drag_coeff, & 127 canopy_mode, cthf, & 128 lad_surface, & 129 lad_vertical_gradient, & 130 lad_vertical_gradient_level, & 131 lai_beta, & 132 leaf_scalar_exch_coeff, & 133 leaf_surface_conc, pch_index 112 134 113 135 NAMELIST /dvrp_graphics_par/ clip_dvrp_l, clip_dvrp_n, clip_dvrp_r, & … … 159 181 line = ' ' 160 182 183 ! 184 !-- Try to find canopy package 185 REWIND ( 11 ) 186 line = ' ' 187 DO WHILE ( INDEX( line, '&canopy_par' ) == 0 ) 188 READ ( 11, '(A)', END=10 ) line 189 ENDDO 190 BACKSPACE ( 11 ) 191 192 ! 193 !-- Read user-defined namelist 194 READ ( 11, canopy_par ) 195 196 ! 197 !-- Set flag that indicates that canopy model is switched on 198 plant_canopy = .TRUE. 199 200 ! 201 !-- Set flag that indicates that the lad-profile shall be calculated by using 202 !-- a beta probability density function 203 IF ( alpha_lad /= 9999999.9_wp .AND. beta_lad /= 9999999.9_wp ) & 204 calc_beta_lad_profile = .TRUE. 205 206 10 CONTINUE 207 208 161 209 #if defined( __dvrp_graphics ) 162 210 REWIND ( 11 ) 163 211 line = ' ' 164 212 DO WHILE ( INDEX( line, '&dvrp_graphics_par' ) == 0 ) 165 READ ( 11, '(A)', END= 10 ) line213 READ ( 11, '(A)', END=20 ) line 166 214 ENDDO 167 215 BACKSPACE ( 11 ) … … 171 219 READ ( 11, dvrp_graphics_par ) 172 220 173 10 CONTINUE221 20 CONTINUE 174 222 #endif 175 223 … … 179 227 line = ' ' 180 228 DO WHILE ( INDEX( line, '&particles_par' ) == 0 ) 181 READ ( 11, '(A)', END= 20 ) line229 READ ( 11, '(A)', END=30 ) line 182 230 ENDDO 183 231 BACKSPACE ( 11 ) … … 191 239 particle_advection = .TRUE. 192 240 193 20 CONTINUE241 30 CONTINUE 194 242 195 243 … … 198 246 line = ' ' 199 247 DO WHILE ( INDEX( line, '&spectra_par' ) == 0 ) 200 READ ( 11, '(A)', END= 30 ) line248 READ ( 11, '(A)', END=40 ) line 201 249 ENDDO 202 250 BACKSPACE ( 11 ) … … 211 259 IF ( dt_dosp == 9999999.9_wp ) dt_dosp = dt_data_output 212 260 213 30 CONTINUE261 40 CONTINUE 214 262 #endif 215 263
Note: See TracChangeset
for help on using the changeset viewer.