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

Last change on this file since 3924 was 3768, checked in by raasch, 6 years ago

variables commented out + statement added to avoid compiler warnings about unused variables

  • Property svn:keywords set to Id
File size: 4.6 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 3768 2019-02-27 14:35:58Z monakurppa $
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! 2696 2017-12-14 17:12:51Z kanani
33! Change in file header (GPL part)
34!
35! 2101 2017-01-05 16:42:31Z suehring
36!
37! 2000 2016-08-20 18:09:15Z knoop
38! Forced header and separation lines into 80 columns
39!
40! 1951 2016-06-20 10:05:12Z suehring
41! Bugfix in example initialization
42!
43! 1682 2015-10-07 23:56:08Z knoop
44! Code annotations made doxygen readable
45!
46! 1484 2014-10-21 10:53:05Z kanani
47! Changes in the course of the canopy-model modularization:
48!   module plant_canopy_model_mod added,
49!   definition of array cdc (canopy drag coefficient) removed, since it is now
50!   defined purely as a single constant value (see module plant_canopy_model)
51!
52! 1353 2014-04-08 15:21:23Z heinze
53! REAL constants provided with KIND-attribute
54!
55! 1320 2014-03-20 08:40:49Z raasch
56! kind-parameters added to all INTEGER and REAL declaration statements,
57! kinds are defined in new module kinds,
58! old module precision_kind is removed,
59! revision history before 2012 removed,
60! comment fields (!:) to be used for variable explanations added to
61! all variable declaration statements
62!
63! 1036 2012-10-22 13:43:42Z raasch
64! code put under GPL (PALM 3.9)
65!
66! 211 2008-11-11 04:46:24Z raasch
67! Former file user_interface.f90 split into one file per subroutine
68!
69! Description:
70! ------------
71!> Initialisation of the leaf area density array (for scalar grid points) and
72!> the array of the canopy drag coefficient, if the user has not chosen any
73!> of the default cases
74!------------------------------------------------------------------------------!
75 SUBROUTINE user_init_plant_canopy
76 
77
78    USE arrays_3d
79   
80    USE control_parameters
81   
82    USE indices
83   
84    USE kinds
85
86    USE plant_canopy_model_mod
87   
88    USE user
89
90    IMPLICIT NONE
91
92!    INTEGER(iwp) :: i   !< running index
93!    INTEGER(iwp) :: j   !< running index
94
95!
96!-- Here the user-defined grid initializing actions follow:
97
98!
99!-- Set the 3D-array lad_s for user defined canopies
100    SELECT CASE ( TRIM( canopy_mode ) )
101
102       CASE ( 'block' )
103!
104!--       Not allowed here since this is the standard case used in init_3d_model.
105
106       CASE ( 'user_defined_canopy_1' )
107!
108!--       Here the user can define his own forest topography.
109!--       The following lines contain an example, where the plant canopy extends
110!--       only over the second half of the model domain along x.
111!--       Attention: DO-loops have to include the ghost points (nxlg-nxrg,
112!--       nysg-nyng), because no exchange of ghost point information is intended,
113!--       in order to minimize communication between CPUs.
114!          DO  i = nxlg, nxrg
115!             IF ( i >= INT( ( nx+1 ) / 2 ) ) THEN
116!                DO  j = nysg, nyng
117!                   lad_s(:,j,i) = lad(:)
118!                ENDDO
119!             ELSE
120!                lad_s(:,:,i) = 0.0_wp
121!             ENDIF
122!          ENDDO
123!
124!--       After definition, please
125!--       remove the following three lines!
126          message_string = 'canopy_mode "' // canopy_mode // &
127                           '" not available yet'
128          CALL message( 'user_init_plant_canopy', 'UI0007', 0, 1, 0, 6, 0 )
129         
130       CASE DEFAULT
131!
132!--       The DEFAULT case is reached if the parameter canopy_mode contains a
133!--       wrong character string that is neither recognized in init_3d_model nor
134!--       here in user_init_plant_canopy.
135          message_string = 'unknown canopy_mode "' // canopy_mode // '"'
136          CALL message( 'user_init_plant_canopy', 'UI0008', 1, 2, 0, 6, 0 )
137
138    END SELECT
139
140
141 END SUBROUTINE user_init_plant_canopy
142
Note: See TracBrowser for help on using the repository browser.