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

Last change on this file since 1985 was 1969, checked in by suehring, 8 years ago

last commit documented

  • 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 terms
6! of the GNU General Public License as published by the Free Software Foundation,
7! either version 3 of the License, or (at your option) any later version.
8!
9! PALM is distributed in the hope that it will be useful, but WITHOUT ANY
10! WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
11! A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
12!
13! You should have received a copy of the GNU General Public License along with
14! PALM. If not, see <http://www.gnu.org/licenses/>.
15!
16! Copyright 1997-2016 Leibniz Universitaet Hannover
17!--------------------------------------------------------------------------------!
18!
19! Current revisions:
20! -----------------
21!
22!
23! Former revisions:
24! -----------------
25! $Id: user_init_grid.f90 1969 2016-07-18 12:03:12Z suehring $
26!
27! 1968 2016-07-18 12:01:49Z suehring
28! Change dimensions for nzb_local, which do not longer need to be set on
29! multigrid ghost points.
30!
31! 1682 2015-10-07 23:56:08Z knoop
32! Code annotations made doxygen readable
33!
34! 1320 2014-03-20 08:40:49Z raasch
35! kind-parameters added to all INTEGER and REAL declaration statements,
36! kinds are defined in new module kinds,
37! old module precision_kind is removed,
38! revision history before 2012 removed,
39! comment fields (!:) to be used for variable explanations added to
40! all variable declaration statements
41!
42! 1036 2012-10-22 13:43:42Z raasch
43! code put under GPL (PALM 3.9)
44!
45! 217 2008-12-09 18:00:48Z letzel
46! +topography_grid_convention
47! Former file user_interface.f90 split into one file per subroutine
48!
49! Description:
50! ------------
51!> Execution of user-defined grid initializing actions
52!------------------------------------------------------------------------------!
53 SUBROUTINE user_init_grid( nzb_local )
54 
55
56    USE control_parameters
57   
58    USE indices
59   
60    USE kinds
61   
62    USE user
63
64    IMPLICIT NONE
65
66    INTEGER(iwp), DIMENSION(nysg:nyng,nxlg:nxrg) ::  nzb_local   !<
67
68!
69!-- Here the user-defined grid initializing actions follow:
70
71!
72!-- Set the index array nzb_local for non-flat topography.
73!-- Here consistency checks concerning domain size and periodicity are necessary
74    SELECT CASE ( TRIM( topography ) )
75
76       CASE ( 'flat', 'single_building', 'single_street_canyon' )
77!
78!--       Not allowed here since these are the standard cases used in init_grid.
79
80       CASE ( 'user_defined_topography_1' )
81!
82!--       Here the user can define his own topography.
83!--       After definition, please remove the following three lines!
84          message_string = 'topography "' // topography // '" not available yet'
85          CALL message( 'user_init_grid', 'UI0005', 1, 2, 0, 6, 0 )
86
87       CASE DEFAULT
88!
89!--       The DEFAULT case is reached if the parameter topography contains a
90!--       wrong character string that is neither recognized in init_grid nor
91!--       here in user_init_grid.
92          message_string = 'unknown topography "' // topography // '"'
93          CALL message( 'user_init_grid', 'UI0006', 1, 2, 0, 6, 0 )
94
95    END SELECT
96
97
98 END SUBROUTINE user_init_grid
99
Note: See TracBrowser for help on using the repository browser.