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

Last change on this file since 1036 was 1036, checked in by raasch, 11 years ago

code has been put under the GNU General Public License (v3)

  • Property svn:keywords set to Id
File size: 2.0 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-2012  Leibniz University Hannover
18!--------------------------------------------------------------------------------!
19!
20! Current revisions:
21! -----------------
22!
23!
24! Former revisions:
25! -----------------
26! $Id: user_define_netcdf_grid.f90 1036 2012-10-22 13:43:42Z raasch $
27!
28! 211 2008-11-11 04:46:24Z raasch
29! Former file user_interface.f90 split into one file per subroutine
30!
31! Description:
32! ------------
33! Set the grids on which user-defined output quantities are defined.
34! Allowed values for grid_x are "x" and "xu", for grid_y "y" and "yv", and
35! for grid_z "zu" and "zw".
36!------------------------------------------------------------------------------!
37
38    USE user
39
40    IMPLICIT NONE
41
42    CHARACTER (LEN=*) ::  grid_x, grid_y, grid_z, variable
43
44    LOGICAL ::  found
45
46
47    SELECT CASE ( TRIM( variable ) )
48
49!
50!--    Uncomment and extend the following lines, if necessary
51!       CASE ( 'u2', 'u2_xy', 'u2_xz', 'u2_yz' )
52!          grid_x = 'xu'
53!          grid_y = 'y'
54!          grid_z = 'zu'
55
56!       CASE ( 'u*v*', 'u*v*_xy', 'u*v*_xz', 'u*v*_yz' )
57!          grid_x = 'x'
58!          grid_y = 'y'
59!          grid_z = 'zu'
60
61       CASE DEFAULT
62          found  = .FALSE.
63          grid_x = 'none'
64          grid_y = 'none'
65          grid_z = 'none'
66
67    END SELECT
68
69
70 END SUBROUTINE user_define_netcdf_grid
71
Note: See TracBrowser for help on using the repository browser.