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