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

Last change on this file since 1353 was 1353, checked in by heinze, 10 years ago

REAL constants provided with KIND-attribute

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