[211] | 1 | SUBROUTINE user_check_data_output( variable, unit ) |
---|
| 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 | ! |
---|
[1310] | 17 | ! Copyright 1997-2014 Leibniz Universitaet Hannover |
---|
[1036] | 18 | !--------------------------------------------------------------------------------! |
---|
| 19 | ! |
---|
[484] | 20 | ! Current revisions: |
---|
[211] | 21 | ! ----------------- |
---|
[1321] | 22 | ! |
---|
| 23 | ! |
---|
| 24 | ! Former revisions: |
---|
| 25 | ! ----------------- |
---|
| 26 | ! $Id: user_check_data_output.f90 1321 2014-03-20 09:40:40Z letzel $ |
---|
| 27 | ! |
---|
| 28 | ! 1320 2014-03-20 08:40:49Z raasch |
---|
[1320] | 29 | ! kind-parameters added to all INTEGER and REAL declaration statements, |
---|
| 30 | ! kinds are defined in new module kinds, |
---|
| 31 | ! revision history before 2012 removed, |
---|
| 32 | ! comment fields (!:) to be used for variable explanations added to |
---|
| 33 | ! all variable declaration statements |
---|
[211] | 34 | ! |
---|
[1037] | 35 | ! 1036 2012-10-22 13:43:42Z raasch |
---|
| 36 | ! code put under GPL (PALM 3.9) |
---|
| 37 | ! |
---|
[226] | 38 | ! 211 2008-11-11 04:46:24Z raasch |
---|
| 39 | ! Former file user_interface.f90 split into one file per subroutine |
---|
| 40 | ! |
---|
[211] | 41 | ! Description: |
---|
| 42 | ! ------------ |
---|
| 43 | ! Set the unit of user defined output quantities. For those variables |
---|
| 44 | ! not recognized by the user, the parameter unit is set to "illegal", which |
---|
| 45 | ! tells the calling routine that the output variable is not defined and leads |
---|
| 46 | ! to a program abort. |
---|
| 47 | !------------------------------------------------------------------------------! |
---|
| 48 | |
---|
[1320] | 49 | USE kinds |
---|
| 50 | |
---|
[211] | 51 | USE user |
---|
| 52 | |
---|
| 53 | IMPLICIT NONE |
---|
| 54 | |
---|
[1320] | 55 | CHARACTER (LEN=*) :: unit !: |
---|
| 56 | CHARACTER (LEN=*) :: variable !: |
---|
[211] | 57 | |
---|
| 58 | |
---|
| 59 | SELECT CASE ( TRIM( variable ) ) |
---|
| 60 | |
---|
| 61 | ! |
---|
| 62 | !-- Uncomment and extend the following lines, if necessary |
---|
| 63 | ! CASE ( 'u2' ) |
---|
| 64 | ! unit = 'm2/s2' |
---|
| 65 | ! |
---|
| 66 | ! CASE ( 'u*v*' ) |
---|
| 67 | ! unit = 'm2/s2' |
---|
| 68 | ! |
---|
| 69 | CASE DEFAULT |
---|
| 70 | unit = 'illegal' |
---|
| 71 | |
---|
| 72 | END SELECT |
---|
| 73 | |
---|
| 74 | |
---|
| 75 | END SUBROUTINE user_check_data_output |
---|
| 76 | |
---|