source: palm/trunk/SOURCE/user_init_plant_canopy.f90 @ 4180

Last change on this file since 4180 was 4180, checked in by scharf, 5 years ago

removed comments in 'Former revisions' section that are older than 01.01.2019

  • Property svn:keywords set to Id
File size: 3.4 KB
Line 
1!> @file user_init_plant_canopy.f90
2!------------------------------------------------------------------------------!
3! This file is part of the PALM model system.
4!
5! PALM is free software: you can redistribute it and/or modify it under the
6! terms of the GNU General Public License as published by the Free Software
7! Foundation, either version 3 of the License, or (at your option) any later
8! version.
9!
10! PALM is distributed in the hope that it will be useful, but WITHOUT ANY
11! WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12! A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
13!
14! You should have received a copy of the GNU General Public License along with
15! PALM. If not, see <http://www.gnu.org/licenses/>.
16!
17! Copyright 1997-2019 Leibniz Universitaet Hannover
18!------------------------------------------------------------------------------!
19!
20! Current revisions:
21! -----------------
22!
23!
24! Former revisions:
25! -----------------
26! $Id: user_init_plant_canopy.f90 4180 2019-08-21 14:37:54Z scharf $
27! unused variables commented out to avoid compiler warnings
28!
29! 3655 2019-01-07 16:51:22Z knoop
30! Corrected "Former revisions" section
31!
32!
33! Description:
34! ------------
35!> Initialisation of the leaf area density array (for scalar grid points) and
36!> the array of the canopy drag coefficient, if the user has not chosen any
37!> of the default cases
38!------------------------------------------------------------------------------!
39 SUBROUTINE user_init_plant_canopy
40 
41
42    USE arrays_3d
43   
44    USE control_parameters
45   
46    USE indices
47   
48    USE kinds
49
50    USE plant_canopy_model_mod
51   
52    USE user
53
54    IMPLICIT NONE
55
56!    INTEGER(iwp) :: i   !< running index
57!    INTEGER(iwp) :: j   !< running index
58
59!
60!-- Here the user-defined grid initializing actions follow:
61
62!
63!-- Set the 3D-array lad_s for user defined canopies
64    SELECT CASE ( TRIM( canopy_mode ) )
65
66       CASE ( 'block' )
67!
68!--       Not allowed here since this is the standard case used in init_3d_model.
69
70       CASE ( 'user_defined_canopy_1' )
71!
72!--       Here the user can define his own forest topography.
73!--       The following lines contain an example, where the plant canopy extends
74!--       only over the second half of the model domain along x.
75!--       Attention: DO-loops have to include the ghost points (nxlg-nxrg,
76!--       nysg-nyng), because no exchange of ghost point information is intended,
77!--       in order to minimize communication between CPUs.
78!          DO  i = nxlg, nxrg
79!             IF ( i >= INT( ( nx+1 ) / 2 ) ) THEN
80!                DO  j = nysg, nyng
81!                   lad_s(:,j,i) = lad(:)
82!                ENDDO
83!             ELSE
84!                lad_s(:,:,i) = 0.0_wp
85!             ENDIF
86!          ENDDO
87!
88!--       After definition, please
89!--       remove the following three lines!
90          message_string = 'canopy_mode "' // canopy_mode // &
91                           '" not available yet'
92          CALL message( 'user_init_plant_canopy', 'UI0007', 0, 1, 0, 6, 0 )
93         
94       CASE DEFAULT
95!
96!--       The DEFAULT case is reached if the parameter canopy_mode contains a
97!--       wrong character string that is neither recognized in init_3d_model nor
98!--       here in user_init_plant_canopy.
99          message_string = 'unknown canopy_mode "' // canopy_mode // '"'
100          CALL message( 'user_init_plant_canopy', 'UI0008', 1, 2, 0, 6, 0 )
101
102    END SELECT
103
104
105 END SUBROUTINE user_init_plant_canopy
106
Note: See TracBrowser for help on using the repository browser.