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

Last change on this file since 4180 was 4180, checked in by scharf, 22 months ago

removed comments in 'Former revisions' section that are older than 01.01.2019

  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1!> @file user_flight.f90
2!------------------------------------------------------------------------------!
3! This file is part of the PALM model system.
4!
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.
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-2019 Leibniz Universitaet Hannover
18!------------------------------------------------------------------------------!
19!
20! Current revisions:
21! ------------------
22!
23!
24! Former revisions:
25! -----------------
26! $Id: user_flight.f90 4180 2019-08-21 14:37:54Z scharf $
27! unused variables commented out + statement added to avoid compiler warnings
28!
29! 3684 2019-01-20 20:20:58Z knoop
30! Corrected "Former revisions" section
31!
32!
33! Description:
34! ------------
35!> Calculation of user-defined output quantity for flight measurements after
36!> each timestep.
37!------------------------------------------------------------------------------!
38 SUBROUTINE user_flight( var, id )
39
40    USE control_parameters
41   
42    USE grid_variables
43
44    USE indices
45
46    USE kinds
47
48    USE user
49
50    USE arrays_3d
51
52    IMPLICIT NONE
53
54!    INTEGER(iwp) ::  i  !< index along x
55!    INTEGER(iwp) ::  j  !< index along y
56!    INTEGER(iwp) ::  k  !< index along z
57    INTEGER(iwp) ::  id !< variable identifyer, according to the settings in user_init_flight
58       
59    REAL(wp), DIMENSION(nzb:nzt+1,nysg:nyng,nxlg:nxrg) ::  var !< treated variable
60
61!
62!-- Next line is to avoid compiler warning about unused variables. Please remove.
63    IF ( id == 0  .OR.  var(nzb,nysg,nxlg) == 0.0_wp )  CONTINUE
64
65!
66!-- Here, the respective variable is calculated. There is no call of
67!-- exchange_horiz necessary.
68!-- The variable identifyer (id) must be set according to the settings in
69!-- user_init_flight.
70!-- Please note, so far, variable must be located at the center of a grid box.
71!     var = 0.0_wp
72
73!     SELECT CASE ( id )
74!
75!        CASE ( 1 )
76!           DO i = nxl-1, nxr+1
77!              DO j = nys-1, nyn+1
78!                 DO k = nzb, nzt
79!                    var(k,j,i) = ABS( u(k,j,i )
80!                 ENDDO
81!              ENDDO
82!           ENDDO
83!           
84!        CASE ( 2 )
85!           DO i = nxl-1, nxr+1
86!              DO j = nys-1, nyn+1
87!                 DO k = nzb, nzt
88!                    var(k,j,i) = ABS( v(k,j,i) )
89!                 ENDDO
90!              ENDDO
91!           ENDDO
92!
93!     END SELECT
94
95
96 END SUBROUTINE user_flight
Note: See TracBrowser for help on using the repository browser.