source: palm/trunk/SOURCE/user_flight.f90 @ 2000

Last change on this file since 2000 was 2000, checked in by knoop, 8 years ago

Forced header and separation lines into 80 columns

  • Property svn:keywords set to Id
File size: 2.6 KB
RevLine 
[1957]1!> @file user_actions.f90
[2000]2!------------------------------------------------------------------------------!
[1957]3! This file is part of PALM.
4!
[2000]5! PALM is free software: you can redistribute it and/or modify it under the
6! terms of the GNU General Public License as published by the Free Software
7! Foundation, either version 3 of the License, or (at your option) any later
8! version.
[1957]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-2016 Leibniz Universitaet Hannover
[2000]18!------------------------------------------------------------------------------!
[1957]19!
20! Current revisions:
21! ------------------
[2000]22! Forced header and separation lines into 80 columns
[1957]23!
24! Former revisions:
25! -----------------
26! $Id: user_flight.f90 2000 2016-08-20 18:09:15Z knoop $
27!
[1958]28! 1957 2016-07-07 10:43:48Z suehring
29! Initial revision
30!
[1957]31! Description:
32! ------------
33!> Calculation of user-defined output quantity for flight measurements after
34!> each timestep.
35!------------------------------------------------------------------------------!
36 SUBROUTINE user_flight( var, id )
37
38    USE control_parameters
39   
40    USE grid_variables
41
42    USE indices
43
44    USE kinds
45
46    USE user
47
48    USE arrays_3d
49
50    IMPLICIT NONE
51
52    INTEGER(iwp) ::  i  !< index along x
53    INTEGER(iwp) ::  j  !< index along y
54    INTEGER(iwp) ::  k  !< index along z
55    INTEGER(iwp) ::  id !< variable identifyer, according to the settings in user_init_flight
56       
57    REAL(wp), DIMENSION(nzb:nzt+1,nysg:nyng,nxlg:nxrg) ::  var !< treated variable
58
59!
60!-- Here, the respective variable is calculated. There is no call of
61!-- exchange_horiz necessary.
62!-- The variable identifyer (id) must be set according to the settings in
63!-- user_init_flight.
64!-- Please note, so far, variable must be located at the center of a grid box.
65!     var = 0.0_wp
66
67!     SELECT CASE ( id )
68!
69!        CASE ( 1 )
70!           DO i = nxl-1, nxr+1
71!              DO j = nys-1, nyn+1
72!                 DO k = nzb, nzt
73!                    var(k,j,i) = ABS( u(k,j,i )
74!                 ENDDO
75!              ENDDO
76!           ENDDO
77!           
78!        CASE ( 2 )
79!           DO i = nxl-1, nxr+1
80!              DO j = nys-1, nyn+1
81!                 DO k = nzb, nzt
82!                    var(k,j,i) = ABS( v(k,j,i) )
83!                 ENDDO
84!              ENDDO
85!           ENDDO
86!
87!     END SELECT
88
89
90 END SUBROUTINE user_flight
Note: See TracBrowser for help on using the repository browser.