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

Last change on this file since 1036 was 1036, checked in by raasch, 11 years ago

code has been put under the GNU General Public License (v3)

  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1 SUBROUTINE user_header( io )
2
3!--------------------------------------------------------------------------------!
4! This file is part of PALM.
5!
6! PALM is free software: you can redistribute it and/or modify it under the terms
7! of the GNU General Public License as published by the Free Software Foundation,
8! either version 3 of the License, or (at your option) any later 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-2012  Leibniz University Hannover
18!--------------------------------------------------------------------------------!
19!
20! Current revisions:
21! -----------------
22!
23!
24! Former revisions:
25! -----------------
26! $Id: user_header.f90 1036 2012-10-22 13:43:42Z raasch $
27!
28! 256 2009-03-08 08:56:27Z letzel
29! new topography case 'single_street_canyon'
30! topography_grid_convention moved to header
31!
32! 2008-12-09 18:00:48Z letzel
33! +topography_grid_convention
34! Former file user_interface.f90 split into one file per subroutine
35!
36! Description:
37! ------------
38! Print a header with user-defined informations.
39!------------------------------------------------------------------------------!
40
41    USE control_parameters
42    USE statistics
43    USE user
44
45    IMPLICIT NONE
46
47    INTEGER ::  i, io
48
49!
50!-- If no user-defined variables are read from the namelist-file, no
51!-- informations will be printed.
52    IF ( .NOT. user_defined_namelist_found )  THEN
53       WRITE ( io, 100 )
54       RETURN
55    ENDIF
56
57!
58!-- Printing the informations.
59    WRITE ( io, 110 )
60
61    IF ( statistic_regions /= 0 )  THEN
62       WRITE ( io, 200 )
63       DO  i = 0, statistic_regions
64          WRITE ( io, 201 )  i, region(i)
65       ENDDO
66    ENDIF
67
68!
69!-- Format-descriptors
70100 FORMAT (//' *** no user-defined variables found'/)
71110 FORMAT (//1X,78('#')                                      &
72            //' User-defined variables and actions:'/  &
73              ' -----------------------------------'//)
74200 FORMAT (' Output of profiles and time series for following regions:' /)
75201 FORMAT (4X,'Region ',I1,':   ',A)
76
77
78 END SUBROUTINE user_header
79
Note: See TracBrowser for help on using the repository browser.