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

Last change on this file since 2809 was 2718, checked in by maronga, 7 years ago

deleting of deprecated files; headers updated where needed

  • Property svn:keywords set to Id
File size: 3.2 KB
RevLine 
[1682]1!> @file user_init.f90
[2000]2!------------------------------------------------------------------------------!
[2696]3! This file is part of the PALM model system.
[1036]4!
[2000]5! PALM is free software: you can redistribute it and/or modify it under the
6! terms of the GNU General Public License as published by the Free Software
7! Foundation, either version 3 of the License, or (at your option) any later
8! version.
[1036]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!
[2718]17! Copyright 1997-2018 Leibniz Universitaet Hannover
[2000]18!------------------------------------------------------------------------------!
[1036]19!
[484]20! Current revisions:
[211]21! -----------------
[1800]22!
[2001]23!
[211]24! Former revisions:
25! -----------------
26! $Id: user_init.f90 2718 2018-01-02 08:49:38Z schwenkel $
[2716]27! Corrected "Former revisions" section
28!
29! 2696 2017-12-14 17:12:51Z kanani
30! Change in file header (GPL part)
[211]31!
[2716]32! 2101 2017-01-05 16:42:31Z suehring
33!
[2001]34! 2000 2016-08-20 18:09:15Z knoop
35! Forced header and separation lines into 80 columns
36!
[1800]37! 1799 2016-04-05 08:35:55Z gronemeier
38! Bugfix: added dots_num to variable list
39!
[1784]40! 1783 2016-03-06 18:36:17Z raasch
41! netcdf module name changed + related changes
42!
[1683]43! 1682 2015-10-07 23:56:08Z knoop
44! Code annotations made doxygen readable
45!
[1354]46! 1353 2014-04-08 15:21:23Z heinze
47! REAL constants provided with KIND-attribute
48!
[1321]49! 1320 2014-03-20 08:40:49Z raasch
50! revision history before 2012 removed,
51! comment fields (!:) to be used for variable explanations added to
52! all variable declaration statements
53!
[1037]54! 1036 2012-10-22 13:43:42Z raasch
55! code put under GPL (PALM 3.9)
56!
[226]57! 211 2008-11-11 04:46:24Z raasch
58! Former file user_interface.f90 split into one file per subroutine
59!
[211]60! Description:
61! ------------
[1682]62!> Execution of user-defined initializing actions
[211]63!------------------------------------------------------------------------------!
[1682]64 SUBROUTINE user_init
65 
[211]66
67    USE control_parameters
[1320]68   
[211]69    USE indices
[1320]70   
71    USE kinds
72   
[1783]73    USE netcdf_interface,                                                      &
[1799]74        ONLY: dots_label, dots_unit, dots_num
[1320]75   
[211]76    USE pegrid
[1320]77   
[211]78    USE user
79
80    IMPLICIT NONE
81
[1682]82    CHARACTER (LEN=20) :: field_char   !<
[211]83!
84!-- Here the user-defined initializing actions follow:
85!-- Sample for user-defined output
[667]86!    ALLOCATE( u2(nzb:nzt+1,nysg:nyng,nxlg:nxrg) )
[1353]87!    ALLOCATE( ustvst(nzb:nzt+1,nysg:nyng,nxlg:nxrg) );  ustvst = 0.0_wp
[211]88
89!-- Sample for user-defined time series
90!-- For each time series quantity you have to give a label and a unit,
91!-- which will be used for the NetCDF file. They must not contain more than
92!-- seven characters. The value of dots_num has to be increased by the
93!-- number of new time series quantities. Its old value has to be store in
94!-- dots_num_palm. See routine user_statistics on how to output calculate
95!-- and output these quantities.
96!    dots_label(dots_num+1) = 'abs_umx'
97!    dots_unit(dots_num+1)  = 'm/s'
98!    dots_label(dots_num+2) = 'abs_vmx'
99!    dots_unit(dots_num+2)  = 'm/s'
100!
101!    dots_num_palm = dots_num
102!    dots_num = dots_num + 2
103
104 END SUBROUTINE user_init
105
Note: See TracBrowser for help on using the repository browser.