Last change
on this file since 211 was
211,
checked in by raasch, 15 years ago
|
user interface was split into one single file per subroutine
|
-
Property svn:keywords set to
Id
|
File size:
1.3 KB
|
Rev | Line | |
---|
[211] | 1 | SUBROUTINE user_header( io ) |
---|
| 2 | |
---|
| 3 | !------------------------------------------------------------------------------! |
---|
| 4 | ! Actual revisions: |
---|
| 5 | ! ----------------- |
---|
| 6 | ! Former file user_interface.f90 split into one file per subroutine |
---|
| 7 | ! |
---|
| 8 | ! Former revisions: |
---|
| 9 | ! ----------------- |
---|
| 10 | ! $Id: user_header.f90 211 2008-11-11 04:46:24Z raasch $ |
---|
| 11 | ! |
---|
| 12 | ! Description: |
---|
| 13 | ! ------------ |
---|
| 14 | ! Print a header with user-defined informations. |
---|
| 15 | !------------------------------------------------------------------------------! |
---|
| 16 | |
---|
| 17 | USE statistics |
---|
| 18 | USE user |
---|
| 19 | |
---|
| 20 | IMPLICIT NONE |
---|
| 21 | |
---|
| 22 | INTEGER :: i, io |
---|
| 23 | |
---|
| 24 | ! |
---|
| 25 | !-- If no user-defined variables are read from the namelist-file, no |
---|
| 26 | !-- informations will be printed. |
---|
| 27 | IF ( .NOT. user_defined_namelist_found ) THEN |
---|
| 28 | WRITE ( io, 100 ) |
---|
| 29 | RETURN |
---|
| 30 | ENDIF |
---|
| 31 | |
---|
| 32 | ! |
---|
| 33 | !-- Printing the informations. |
---|
| 34 | WRITE ( io, 110 ) |
---|
| 35 | |
---|
| 36 | IF ( statistic_regions /= 0 ) THEN |
---|
| 37 | WRITE ( io, 200 ) |
---|
| 38 | DO i = 0, statistic_regions |
---|
| 39 | WRITE ( io, 201 ) i, region(i) |
---|
| 40 | ENDDO |
---|
| 41 | ENDIF |
---|
| 42 | |
---|
| 43 | |
---|
| 44 | |
---|
| 45 | ! |
---|
| 46 | !-- Format-descriptors |
---|
| 47 | 100 FORMAT (//' *** no user-defined variables found'/) |
---|
| 48 | 110 FORMAT (//1X,78('#') & |
---|
| 49 | //' User-defined variables and actions:'/ & |
---|
| 50 | ' -----------------------------------'//) |
---|
| 51 | 200 FORMAT (' Output of profiles and time series for following regions:' /) |
---|
| 52 | 201 FORMAT (4X,'Region ',I1,': ',A) |
---|
| 53 | |
---|
| 54 | |
---|
| 55 | END SUBROUTINE user_header |
---|
| 56 | |
---|
Note: See
TracBrowser
for help on using the repository browser.