[211] | 1 | SUBROUTINE user_header( io ) |
---|
| 2 | |
---|
| 3 | !------------------------------------------------------------------------------! |
---|
[484] | 4 | ! Current revisions: |
---|
[211] | 5 | ! ----------------- |
---|
[392] | 6 | ! |
---|
[211] | 7 | ! |
---|
| 8 | ! Former revisions: |
---|
| 9 | ! ----------------- |
---|
| 10 | ! $Id: user_header.f90 484 2010-02-05 07:36:54Z hoffmann $ |
---|
| 11 | ! |
---|
[392] | 12 | ! 256 2009-03-08 08:56:27Z letzel |
---|
| 13 | ! new topography case 'single_street_canyon' |
---|
| 14 | ! topography_grid_convention moved to header |
---|
| 15 | ! |
---|
[226] | 16 | ! 2008-12-09 18:00:48Z letzel |
---|
| 17 | ! +topography_grid_convention |
---|
| 18 | ! Former file user_interface.f90 split into one file per subroutine |
---|
| 19 | ! |
---|
[211] | 20 | ! Description: |
---|
| 21 | ! ------------ |
---|
| 22 | ! Print a header with user-defined informations. |
---|
| 23 | !------------------------------------------------------------------------------! |
---|
| 24 | |
---|
[217] | 25 | USE control_parameters |
---|
[211] | 26 | USE statistics |
---|
| 27 | USE user |
---|
| 28 | |
---|
| 29 | IMPLICIT NONE |
---|
| 30 | |
---|
| 31 | INTEGER :: i, io |
---|
| 32 | |
---|
| 33 | ! |
---|
| 34 | !-- If no user-defined variables are read from the namelist-file, no |
---|
| 35 | !-- informations will be printed. |
---|
| 36 | IF ( .NOT. user_defined_namelist_found ) THEN |
---|
| 37 | WRITE ( io, 100 ) |
---|
| 38 | RETURN |
---|
| 39 | ENDIF |
---|
| 40 | |
---|
| 41 | ! |
---|
| 42 | !-- Printing the informations. |
---|
| 43 | WRITE ( io, 110 ) |
---|
| 44 | |
---|
| 45 | IF ( statistic_regions /= 0 ) THEN |
---|
| 46 | WRITE ( io, 200 ) |
---|
| 47 | DO i = 0, statistic_regions |
---|
| 48 | WRITE ( io, 201 ) i, region(i) |
---|
| 49 | ENDDO |
---|
| 50 | ENDIF |
---|
| 51 | |
---|
| 52 | ! |
---|
| 53 | !-- Format-descriptors |
---|
| 54 | 100 FORMAT (//' *** no user-defined variables found'/) |
---|
| 55 | 110 FORMAT (//1X,78('#') & |
---|
| 56 | //' User-defined variables and actions:'/ & |
---|
| 57 | ' -----------------------------------'//) |
---|
| 58 | 200 FORMAT (' Output of profiles and time series for following regions:' /) |
---|
| 59 | 201 FORMAT (4X,'Region ',I1,': ',A) |
---|
| 60 | |
---|
| 61 | |
---|
| 62 | END SUBROUTINE user_header |
---|
| 63 | |
---|