source: palm/trunk/SOURCE/user_header.f90 @ 1682

Last change on this file since 1682 was 1682, checked in by knoop, 6 years ago

Code annotations made doxygen readable

  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
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-2014 Leibniz Universitaet Hannover
17!--------------------------------------------------------------------------------!
18!
19! Current revisions:
20! -----------------
21! Code annotations made doxygen readable
22!
23! Former revisions:
24! -----------------
25! $Id: user_header.f90 1682 2015-10-07 23:56:08Z knoop $
26!
27! 1551 2015-03-03 14:18:16Z maronga
28! Typo removed
29!
30! 1320 2014-03-20 08:40:49Z raasch
31! ONLY-attribute added to USE-statements,
32! kind-parameters added to all INTEGER and REAL declaration statements,
33! kinds are defined in new module kinds,
34! old module precision_kind is removed,
35! revision history before 2012 removed,
36! comment fields (!:) to be used for variable explanations added to
37! all variable declaration statements
38!
39! 1036 2012-10-22 13:43:42Z raasch
40! code put under GPL (PALM 3.9)
41!
42! 2008-12-09 18:00:48Z letzel
43! +topography_grid_convention
44! Former file user_interface.f90 split into one file per subroutine
45!
46! Description:
47! ------------
48!> Print a header with user-defined information.
49!------------------------------------------------------------------------------!
50 SUBROUTINE user_header( io )
51 
52
53    USE kinds
54   
55    USE statistics,                                                            &
56        ONLY:  statistic_regions, region
57       
58    USE user
59
60    IMPLICIT NONE
61
62    INTEGER(iwp) ::  i    !<
63    INTEGER(iwp) ::  io   !<
64
65!
66!-- If no user-defined variables are read from the namelist-file, no
67!-- information will be printed.
68    IF ( .NOT. user_defined_namelist_found )  THEN
69       WRITE ( io, 100 )
70       RETURN
71    ENDIF
72
73!
74!-- Printing the information.
75    WRITE ( io, 110 )
76
77    IF ( statistic_regions /= 0 )  THEN
78       WRITE ( io, 200 )
79       DO  i = 0, statistic_regions
80          WRITE ( io, 201 )  i, region(i)
81       ENDDO
82    ENDIF
83
84!
85!-- Format-descriptors
86100 FORMAT (//' *** no user-defined variables found'/)
87110 FORMAT (//1X,78('#')                                                       &
88            //' User-defined variables and actions:'/                          &
89              ' -----------------------------------'//)
90200 FORMAT (' Output of profiles and time series for following regions:' /)
91201 FORMAT (4X,'Region ',I1,':   ',A)
92
93
94 END SUBROUTINE user_header
95
Note: See TracBrowser for help on using the repository browser.