source: palm/trunk/SOURCE/user_check_data_output.f90 @ 1320

Last change on this file since 1320 was 1320, checked in by raasch, 10 years ago

ONLY-attribute added to USE-statements,
kind-parameters added to all INTEGER and REAL declaration statements,
kinds are defined in new module kinds,
old module precision_kind is removed,
revision history before 2012 removed,
comment fields (!:) to be used for variable explanations added to all variable declaration statements

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