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

Last change on this file since 2076 was 2001, checked in by knoop, 8 years ago

last commit documented

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