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

Last change on this file since 1320 was 1320, checked in by raasch, 7 years ago

ONLY-attribute added to USE-statements,
kind-parameters added to all INTEGER and REAL declaration statements,
kinds are defined in new module kinds,
old module precision_kind is removed,
revision history before 2012 removed,
comment fields (!:) to be used for variable explanations added to all variable declaration statements

  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1 SUBROUTINE user_init
2
3!--------------------------------------------------------------------------------!
4! This file is part of PALM.
5!
6! PALM is free software: you can redistribute it and/or modify it under the terms
7! of the GNU General Public License as published by the Free Software Foundation,
8! either version 3 of the License, or (at your option) any later 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-2014 Leibniz Universitaet Hannover
18!--------------------------------------------------------------------------------!
19!
20! Current revisions:
21! -----------------
22! revision history before 2012 removed,
23! comment fields (!:) to be used for variable explanations added to
24! all variable declaration statements
25!
26!
27! Former revisions:
28! -----------------
29! $Id: user_init.f90 1320 2014-03-20 08:40:49Z raasch $
30!
31! 1036 2012-10-22 13:43:42Z raasch
32! code put under GPL (PALM 3.9)
33!
34! 211 2008-11-11 04:46:24Z raasch
35! Former file user_interface.f90 split into one file per subroutine
36!
37! Description:
38! ------------
39! Execution of user-defined initializing actions
40!------------------------------------------------------------------------------!
41
42    USE control_parameters
43   
44    USE indices
45   
46    USE kinds
47   
48    USE netcdf_control
49   
50    USE pegrid
51   
52    USE user
53
54    IMPLICIT NONE
55
56    CHARACTER (LEN=20) :: field_char   !:
57!
58!-- Here the user-defined initializing actions follow:
59!-- Sample for user-defined output
60!    ALLOCATE( u2(nzb:nzt+1,nysg:nyng,nxlg:nxrg) )
61!    ALLOCATE( ustvst(nzb:nzt+1,nysg:nyng,nxlg:nxrg) );  ustvst = 0.0
62
63!-- Sample for user-defined time series
64!-- For each time series quantity you have to give a label and a unit,
65!-- which will be used for the NetCDF file. They must not contain more than
66!-- seven characters. The value of dots_num has to be increased by the
67!-- number of new time series quantities. Its old value has to be store in
68!-- dots_num_palm. See routine user_statistics on how to output calculate
69!-- and output these quantities.
70!    dots_label(dots_num+1) = 'abs_umx'
71!    dots_unit(dots_num+1)  = 'm/s'
72!    dots_label(dots_num+2) = 'abs_vmx'
73!    dots_unit(dots_num+2)  = 'm/s'
74!
75!    dots_num_palm = dots_num
76!    dots_num = dots_num + 2
77
78 END SUBROUTINE user_init
79
Note: See TracBrowser for help on using the repository browser.