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

Last change on this file since 1074 was 1037, checked in by raasch, 12 years ago

last commit documented

  • Property svn:keywords set to Id
File size: 2.4 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-2012  Leibniz University Hannover
18!--------------------------------------------------------------------------------!
19!
20! Current revisions:
21! -----------------
22!
23! Former revisions:
24! -----------------
25! $Id: user_init.f90 1037 2012-10-22 14:10:22Z hoffmann $
26!
27! 1036 2012-10-22 13:43:42Z raasch
28! code put under GPL (PALM 3.9)
29!
30! 667 2010-12-23 12:06:00Z suehring/gryschka
31! nxl-1, nxr+1, nys-1, nyn+1 replaced by nxlg, nxrg, nysg, nyng
32!
33! 211 2008-11-11 04:46:24Z raasch
34! Former file user_interface.f90 split into one file per subroutine
35!
36! Description:
37! ------------
38! Execution of user-defined initializing actions
39!------------------------------------------------------------------------------!
40
41    USE control_parameters
42    USE indices
43    USE netcdf_control
44    USE pegrid
45    USE user
46
47    IMPLICIT NONE
48
49    CHARACTER (LEN=20) :: field_char
50!
51!-- Here the user-defined initializing actions follow:
52!-- Sample for user-defined output
53!    ALLOCATE( u2(nzb:nzt+1,nysg:nyng,nxlg:nxrg) )
54!    ALLOCATE( ustvst(nzb:nzt+1,nysg:nyng,nxlg:nxrg) );  ustvst = 0.0
55
56!-- Sample for user-defined time series
57!-- For each time series quantity you have to give a label and a unit,
58!-- which will be used for the NetCDF file. They must not contain more than
59!-- seven characters. The value of dots_num has to be increased by the
60!-- number of new time series quantities. Its old value has to be store in
61!-- dots_num_palm. See routine user_statistics on how to output calculate
62!-- and output these quantities.
63!    dots_label(dots_num+1) = 'abs_umx'
64!    dots_unit(dots_num+1)  = 'm/s'
65!    dots_label(dots_num+2) = 'abs_vmx'
66!    dots_unit(dots_num+2)  = 'm/s'
67!
68!    dots_num_palm = dots_num
69!    dots_num = dots_num + 2
70
71 END SUBROUTINE user_init
72
Note: See TracBrowser for help on using the repository browser.