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

Last change on this file since 1320 was 1320, checked in by raasch, 8 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.3 KB
Line 
1 SUBROUTINE user_define_netcdf_grid( variable, found, grid_x, grid_y, grid_z )
2
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-2014 Leibniz Universitaet Hannover
18!--------------------------------------------------------------------------------!
19!
20! Current revisions:
21! -----------------
22! comment fields (!:) to be used for variable explanations added to
23! all variable declaration statements
24!
25!
26! Former revisions:
27! -----------------
28! $Id: user_define_netcdf_grid.f90 1320 2014-03-20 08:40:49Z raasch $
29!
30! 1036 2012-10-22 13:43:42Z raasch
31! code put under GPL (PALM 3.9)
32!
33! 211 2008-11-11 04:46:24Z raasch
34! Former file user_interface.f90 split into one file per subroutine
35!
36! Description:
37! ------------
38! Set the grids on which user-defined output quantities are defined.
39! Allowed values for grid_x are "x" and "xu", for grid_y "y" and "yv", and
40! for grid_z "zu" and "zw".
41!------------------------------------------------------------------------------!
42
43    USE kinds
44   
45    USE user
46
47    IMPLICIT NONE
48
49    CHARACTER (LEN=*) ::  grid_x     !:
50    CHARACTER (LEN=*) ::  grid_y     !:
51    CHARACTER (LEN=*) ::  grid_z     !:
52    CHARACTER (LEN=*) ::  variable   !:
53
54    LOGICAL ::  found   !:
55
56
57    SELECT CASE ( TRIM( variable ) )
58
59!
60!--    Uncomment and extend the following lines, if necessary
61!       CASE ( 'u2', 'u2_xy', 'u2_xz', 'u2_yz' )
62!          grid_x = 'xu'
63!          grid_y = 'y'
64!          grid_z = 'zu'
65
66!       CASE ( 'u*v*', 'u*v*_xy', 'u*v*_xz', 'u*v*_yz' )
67!          grid_x = 'x'
68!          grid_y = 'y'
69!          grid_z = 'zu'
70
71       CASE DEFAULT
72          found  = .FALSE.
73          grid_x = 'none'
74          grid_y = 'none'
75          grid_z = 'none'
76
77    END SELECT
78
79
80 END SUBROUTINE user_define_netcdf_grid
81
Note: See TracBrowser for help on using the repository browser.