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

Last change on this file since 4327 was 4182, checked in by scharf, 5 years ago
  • corrected "Former revisions" section
  • minor formatting in "Former revisions" section
  • added "Author" section
  • Property svn:keywords set to Id
File size: 3.5 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 4182 2019-08-22 15:20:23Z Giersch $
27! Corrected "Former revisions" section
28!
29! 3768 2019-02-27 14:35:58Z raasch
30! unused variables commented out to avoid compiler warnings
31!
32! 3655 2019-01-07 16:51:22Z knoop
33! Corrected "Former revisions" section
34!
35! 211 2008-11-11 04:46:24Z raasch
36! Former file user_interface.f90 split into one file per subroutine
37!
38! Description:
39! ------------
40!> Initialisation of the leaf area density array (for scalar grid points) and
41!> the array of the canopy drag coefficient, if the user has not chosen any
42!> of the default cases
43!------------------------------------------------------------------------------!
44 SUBROUTINE user_init_plant_canopy
45 
46
47    USE arrays_3d
48   
49    USE control_parameters
50   
51    USE indices
52   
53    USE kinds
54
55    USE plant_canopy_model_mod
56   
57    USE user
58
59    IMPLICIT NONE
60
61!    INTEGER(iwp) :: i   !< running index
62!    INTEGER(iwp) :: j   !< running index
63
64!
65!-- Here the user-defined grid initializing actions follow:
66
67!
68!-- Set the 3D-array lad_s for user defined canopies
69    SELECT CASE ( TRIM( canopy_mode ) )
70
71       CASE ( 'block' )
72!
73!--       Not allowed here since this is the standard case used in init_3d_model.
74
75       CASE ( 'user_defined_canopy_1' )
76!
77!--       Here the user can define his own forest topography.
78!--       The following lines contain an example, where the plant canopy extends
79!--       only over the second half of the model domain along x.
80!--       Attention: DO-loops have to include the ghost points (nxlg-nxrg,
81!--       nysg-nyng), because no exchange of ghost point information is intended,
82!--       in order to minimize communication between CPUs.
83!          DO  i = nxlg, nxrg
84!             IF ( i >= INT( ( nx+1 ) / 2 ) ) THEN
85!                DO  j = nysg, nyng
86!                   lad_s(:,j,i) = lad(:)
87!                ENDDO
88!             ELSE
89!                lad_s(:,:,i) = 0.0_wp
90!             ENDIF
91!          ENDDO
92!
93!--       After definition, please
94!--       remove the following three lines!
95          message_string = 'canopy_mode "' // canopy_mode // &
96                           '" not available yet'
97          CALL message( 'user_init_plant_canopy', 'UI0007', 0, 1, 0, 6, 0 )
98         
99       CASE DEFAULT
100!
101!--       The DEFAULT case is reached if the parameter canopy_mode contains a
102!--       wrong character string that is neither recognized in init_3d_model nor
103!--       here in user_init_plant_canopy.
104          message_string = 'unknown canopy_mode "' // canopy_mode // '"'
105          CALL message( 'user_init_plant_canopy', 'UI0008', 1, 2, 0, 6, 0 )
106
107    END SELECT
108
109
110 END SUBROUTINE user_init_plant_canopy
111
Note: See TracBrowser for help on using the repository browser.