source: palm/trunk/SOURCE/user_init.f90 @ 1784

Last change on this file since 1784 was 1784, checked in by raasch, 8 years ago

last commit documented

  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
1!> @file user_init.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-2014 Leibniz Universitaet Hannover
17!--------------------------------------------------------------------------------!
18!
19! Current revisions:
20! -----------------
21!
22!
23! Former revisions:
24! -----------------
25! $Id: user_init.f90 1784 2016-03-06 19:14:40Z raasch $
26!
27! 1783 2016-03-06 18:36:17Z raasch
28! netcdf module name changed + related changes
29!
30! 1682 2015-10-07 23:56:08Z knoop
31! Code annotations made doxygen readable
32!
33! 1353 2014-04-08 15:21:23Z heinze
34! REAL constants provided with KIND-attribute
35!
36! 1320 2014-03-20 08:40:49Z raasch
37! revision history before 2012 removed,
38! comment fields (!:) to be used for variable explanations added to
39! all variable declaration statements
40!
41! 1036 2012-10-22 13:43:42Z raasch
42! code put under GPL (PALM 3.9)
43!
44! 211 2008-11-11 04:46:24Z raasch
45! Former file user_interface.f90 split into one file per subroutine
46!
47! Description:
48! ------------
49!> Execution of user-defined initializing actions
50!------------------------------------------------------------------------------!
51 SUBROUTINE user_init
52 
53
54    USE control_parameters
55   
56    USE indices
57   
58    USE kinds
59   
60    USE netcdf_interface,                                                      &
61        ONLY: dots_label, dots_unit
62   
63    USE pegrid
64   
65    USE user
66
67    IMPLICIT NONE
68
69    CHARACTER (LEN=20) :: field_char   !<
70!
71!-- Here the user-defined initializing actions follow:
72!-- Sample for user-defined output
73!    ALLOCATE( u2(nzb:nzt+1,nysg:nyng,nxlg:nxrg) )
74!    ALLOCATE( ustvst(nzb:nzt+1,nysg:nyng,nxlg:nxrg) );  ustvst = 0.0_wp
75
76!-- Sample for user-defined time series
77!-- For each time series quantity you have to give a label and a unit,
78!-- which will be used for the NetCDF file. They must not contain more than
79!-- seven characters. The value of dots_num has to be increased by the
80!-- number of new time series quantities. Its old value has to be store in
81!-- dots_num_palm. See routine user_statistics on how to output calculate
82!-- and output these quantities.
83!    dots_label(dots_num+1) = 'abs_umx'
84!    dots_unit(dots_num+1)  = 'm/s'
85!    dots_label(dots_num+2) = 'abs_vmx'
86!    dots_unit(dots_num+2)  = 'm/s'
87!
88!    dots_num_palm = dots_num
89!    dots_num = dots_num + 2
90
91 END SUBROUTINE user_init
92
Note: See TracBrowser for help on using the repository browser.