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