[211] | 1 | SUBROUTINE user_header( io ) |
---|
| 2 | |
---|
[1036] | 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 | ! |
---|
[484] | 20 | ! Current revisions: |
---|
[211] | 21 | ! ----------------- |
---|
[392] | 22 | ! |
---|
[211] | 23 | ! |
---|
| 24 | ! Former revisions: |
---|
| 25 | ! ----------------- |
---|
| 26 | ! $Id: user_header.f90 1037 2012-10-22 14:10:22Z witha $ |
---|
| 27 | ! |
---|
[1037] | 28 | ! 1036 2012-10-22 13:43:42Z raasch |
---|
| 29 | ! code put under GPL (PALM 3.9) |
---|
| 30 | ! |
---|
[392] | 31 | ! 256 2009-03-08 08:56:27Z letzel |
---|
| 32 | ! new topography case 'single_street_canyon' |
---|
| 33 | ! topography_grid_convention moved to header |
---|
| 34 | ! |
---|
[226] | 35 | ! 2008-12-09 18:00:48Z letzel |
---|
| 36 | ! +topography_grid_convention |
---|
| 37 | ! Former file user_interface.f90 split into one file per subroutine |
---|
| 38 | ! |
---|
[211] | 39 | ! Description: |
---|
| 40 | ! ------------ |
---|
| 41 | ! Print a header with user-defined informations. |
---|
| 42 | !------------------------------------------------------------------------------! |
---|
| 43 | |
---|
[217] | 44 | USE control_parameters |
---|
[211] | 45 | USE statistics |
---|
| 46 | USE user |
---|
| 47 | |
---|
| 48 | IMPLICIT NONE |
---|
| 49 | |
---|
| 50 | INTEGER :: i, io |
---|
| 51 | |
---|
| 52 | ! |
---|
| 53 | !-- If no user-defined variables are read from the namelist-file, no |
---|
| 54 | !-- informations will be printed. |
---|
| 55 | IF ( .NOT. user_defined_namelist_found ) THEN |
---|
| 56 | WRITE ( io, 100 ) |
---|
| 57 | RETURN |
---|
| 58 | ENDIF |
---|
| 59 | |
---|
| 60 | ! |
---|
| 61 | !-- Printing the informations. |
---|
| 62 | WRITE ( io, 110 ) |
---|
| 63 | |
---|
| 64 | IF ( statistic_regions /= 0 ) THEN |
---|
| 65 | WRITE ( io, 200 ) |
---|
| 66 | DO i = 0, statistic_regions |
---|
| 67 | WRITE ( io, 201 ) i, region(i) |
---|
| 68 | ENDDO |
---|
| 69 | ENDIF |
---|
| 70 | |
---|
| 71 | ! |
---|
| 72 | !-- Format-descriptors |
---|
| 73 | 100 FORMAT (//' *** no user-defined variables found'/) |
---|
| 74 | 110 FORMAT (//1X,78('#') & |
---|
| 75 | //' User-defined variables and actions:'/ & |
---|
| 76 | ' -----------------------------------'//) |
---|
| 77 | 200 FORMAT (' Output of profiles and time series for following regions:' /) |
---|
| 78 | 201 FORMAT (4X,'Region ',I1,': ',A) |
---|
| 79 | |
---|
| 80 | |
---|
| 81 | END SUBROUTINE user_header |
---|
| 82 | |
---|