source: palm/trunk/SOURCE/user_init_grid.f90 @ 2000

Last change on this file since 2000 was 2000, checked in by knoop, 8 years ago

Forced header and separation lines into 80 columns

  • Property svn:keywords set to Id
File size: 3.2 KB
Line 
1!> @file user_init_grid.f90
2!------------------------------------------------------------------------------!
3! This file is part of PALM.
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-2016 Leibniz Universitaet Hannover
18!------------------------------------------------------------------------------!
19!
20! Current revisions:
21! -----------------
22! Forced header and separation lines into 80 columns
23!
24! Former revisions:
25! -----------------
26! $Id: user_init_grid.f90 2000 2016-08-20 18:09:15Z knoop $
27!
28! 1968 2016-07-18 12:01:49Z suehring
29! Change dimensions for nzb_local, which do not longer need to be set on
30! multigrid ghost points.
31!
32! 1682 2015-10-07 23:56:08Z knoop
33! Code annotations made doxygen readable
34!
35! 1320 2014-03-20 08:40:49Z raasch
36! kind-parameters added to all INTEGER and REAL declaration statements,
37! kinds are defined in new module kinds,
38! old module precision_kind is removed,
39! revision history before 2012 removed,
40! comment fields (!:) to be used for variable explanations added to
41! all variable declaration statements
42!
43! 1036 2012-10-22 13:43:42Z raasch
44! code put under GPL (PALM 3.9)
45!
46! 217 2008-12-09 18:00:48Z letzel
47! +topography_grid_convention
48! Former file user_interface.f90 split into one file per subroutine
49!
50! Description:
51! ------------
52!> Execution of user-defined grid initializing actions
53!------------------------------------------------------------------------------!
54 SUBROUTINE user_init_grid( nzb_local )
55 
56
57    USE control_parameters
58   
59    USE indices
60   
61    USE kinds
62   
63    USE user
64
65    IMPLICIT NONE
66
67    INTEGER(iwp), DIMENSION(nysg:nyng,nxlg:nxrg) ::  nzb_local   !<
68
69!
70!-- Here the user-defined grid initializing actions follow:
71
72!
73!-- Set the index array nzb_local for non-flat topography.
74!-- Here consistency checks concerning domain size and periodicity are necessary
75    SELECT CASE ( TRIM( topography ) )
76
77       CASE ( 'flat', 'single_building', 'single_street_canyon' )
78!
79!--       Not allowed here since these are the standard cases used in init_grid.
80
81       CASE ( 'user_defined_topography_1' )
82!
83!--       Here the user can define his own topography.
84!--       After definition, please remove the following three lines!
85          message_string = 'topography "' // topography // '" not available yet'
86          CALL message( 'user_init_grid', 'UI0005', 1, 2, 0, 6, 0 )
87
88       CASE DEFAULT
89!
90!--       The DEFAULT case is reached if the parameter topography contains a
91!--       wrong character string that is neither recognized in init_grid nor
92!--       here in user_init_grid.
93          message_string = 'unknown topography "' // topography // '"'
94          CALL message( 'user_init_grid', 'UI0006', 1, 2, 0, 6, 0 )
95
96    END SELECT
97
98
99 END SUBROUTINE user_init_grid
100
Note: See TracBrowser for help on using the repository browser.