Changeset 138 for palm/trunk/SOURCE/user_interface.f90
- Timestamp:
- Nov 28, 2007 10:03:58 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/user_interface.f90
r136 r138 4 4 ! Actual revisions: 5 5 ! ----------------- 6 ! new subroutine user_init_plant_canopy 7 ! 6 8 ! new subroutine user_data_output_dvrp 7 9 ! +argument gls in user_init_grid … … 293 295 294 296 END SUBROUTINE user_init_grid 297 298 299 300 SUBROUTINE user_init_plant_canopy 301 302 !------------------------------------------------------------------------------! 303 ! 304 ! Description: 305 ! ------------ 306 ! Initialisation of the leaf area density array (for scalar grid points) and 307 ! the array of the canopy drag coefficient, if the user has not chosen any 308 ! of the default cases 309 !------------------------------------------------------------------------------! 310 311 USE arrays_3d 312 USE control_parameters 313 USE indices 314 USE user 315 316 IMPLICIT NONE 317 318 INTEGER :: i, j 319 320 ! 321 !-- Here the user-defined grid initializing actions follow: 322 323 ! 324 !-- Set the 3D-arrays lad_s and cdc for user defined canopies 325 SELECT CASE ( TRIM( canopy_mode ) ) 326 327 CASE ( 'block' ) 328 ! 329 !-- Not allowed here since this is the standard case used in init_3d_model. 330 331 CASE ( 'user_defined_canopy_1' ) 332 ! 333 !-- Here the user can define his own topography. 334 !-- The following lines contain an example in that the 335 !-- plant canopy extends only over the second half of the 336 !-- model domain along x 337 ! DO i = nxl-1, nxr+1 338 ! IF ( i >= INT(nx+1/2) ) THEN 339 ! DO j = nys-1, nyn+1 340 ! lad_s(:,j,i) = lad(:) 341 ! cdc(:,j,i) = drag_coefficient 342 ! ENDDO 343 ! ELSE 344 ! lad_s(:,:,i) = 0.0 345 ! cdc(:,:,i) = 0.0 346 ! ENDIF 347 ! ENDDO 348 !-- After definition, please 349 !-- remove the following three lines! 350 PRINT*, '+++ user_init_plant_canopy: canopy_mode "', & 351 canopy_mode, '" not available yet' 352 353 CASE DEFAULT 354 ! 355 !-- The DEFAULT case is reached if the parameter canopy_mode contains a 356 !-- wrong character string that is neither recognized in init_3d_model nor 357 !-- here in user_init_plant_canopy. 358 PRINT*, '+++ user_init_plant_canopy: unknown canopy_mode "', & 359 canopy_mode, '"' 360 CALL local_stop 361 362 END SELECT 363 364 365 END SUBROUTINE user_init_plant_canopy 295 366 296 367
Note: See TracChangeset
for help on using the changeset viewer.