1 | !> @file user_header.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 terms |
---|
6 | ! of the GNU General Public License as published by the Free Software Foundation, |
---|
7 | ! either version 3 of the License, or (at your option) any later version. |
---|
8 | ! |
---|
9 | ! PALM is distributed in the hope that it will be useful, but WITHOUT ANY |
---|
10 | ! WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR |
---|
11 | ! A PARTICULAR PURPOSE. See the GNU General Public License for more details. |
---|
12 | ! |
---|
13 | ! You should have received a copy of the GNU General Public License along with |
---|
14 | ! PALM. If not, see <http://www.gnu.org/licenses/>. |
---|
15 | ! |
---|
16 | ! Copyright 1997-2016 Leibniz Universitaet Hannover |
---|
17 | !--------------------------------------------------------------------------------! |
---|
18 | ! |
---|
19 | ! Current revisions: |
---|
20 | ! ----------------- |
---|
21 | ! |
---|
22 | ! |
---|
23 | ! Former revisions: |
---|
24 | ! ----------------- |
---|
25 | ! $Id: user_header.f90 1818 2016-04-06 15:53:27Z hellstea $ |
---|
26 | ! |
---|
27 | ! 1682 2015-10-07 23:56:08Z knoop |
---|
28 | ! Code annotations made doxygen readable |
---|
29 | ! |
---|
30 | ! 1551 2015-03-03 14:18:16Z maronga |
---|
31 | ! Typo removed |
---|
32 | ! |
---|
33 | ! 1320 2014-03-20 08:40:49Z raasch |
---|
34 | ! ONLY-attribute added to USE-statements, |
---|
35 | ! kind-parameters added to all INTEGER and REAL declaration statements, |
---|
36 | ! kinds are defined in new module kinds, |
---|
37 | ! old module precision_kind is removed, |
---|
38 | ! revision history before 2012 removed, |
---|
39 | ! comment fields (!:) to be used for variable explanations added to |
---|
40 | ! all variable declaration statements |
---|
41 | ! |
---|
42 | ! 1036 2012-10-22 13:43:42Z raasch |
---|
43 | ! code put under GPL (PALM 3.9) |
---|
44 | ! |
---|
45 | ! 2008-12-09 18:00:48Z letzel |
---|
46 | ! +topography_grid_convention |
---|
47 | ! Former file user_interface.f90 split into one file per subroutine |
---|
48 | ! |
---|
49 | ! Description: |
---|
50 | ! ------------ |
---|
51 | !> Print a header with user-defined information. |
---|
52 | !------------------------------------------------------------------------------! |
---|
53 | SUBROUTINE user_header( io ) |
---|
54 | |
---|
55 | |
---|
56 | USE kinds |
---|
57 | |
---|
58 | USE statistics, & |
---|
59 | ONLY: statistic_regions, region |
---|
60 | |
---|
61 | USE user |
---|
62 | |
---|
63 | IMPLICIT NONE |
---|
64 | |
---|
65 | INTEGER(iwp) :: i !< |
---|
66 | INTEGER(iwp) :: io !< |
---|
67 | |
---|
68 | ! |
---|
69 | !-- If no user-defined variables are read from the namelist-file, no |
---|
70 | !-- information will be printed. |
---|
71 | IF ( .NOT. user_defined_namelist_found ) THEN |
---|
72 | WRITE ( io, 100 ) |
---|
73 | RETURN |
---|
74 | ENDIF |
---|
75 | |
---|
76 | ! |
---|
77 | !-- Printing the information. |
---|
78 | WRITE ( io, 110 ) |
---|
79 | |
---|
80 | IF ( statistic_regions /= 0 ) THEN |
---|
81 | WRITE ( io, 200 ) |
---|
82 | DO i = 0, statistic_regions |
---|
83 | WRITE ( io, 201 ) i, region(i) |
---|
84 | ENDDO |
---|
85 | ENDIF |
---|
86 | |
---|
87 | ! |
---|
88 | !-- Format-descriptors |
---|
89 | 100 FORMAT (//' *** no user-defined variables found'/) |
---|
90 | 110 FORMAT (//1X,78('#') & |
---|
91 | //' User-defined variables and actions:'/ & |
---|
92 | ' -----------------------------------'//) |
---|
93 | 200 FORMAT (' Output of profiles and time series for following regions:' /) |
---|
94 | 201 FORMAT (4X,'Region ',I1,': ',A) |
---|
95 | |
---|
96 | |
---|
97 | END SUBROUTINE user_header |
---|
98 | |
---|