Changeset 4498 for palm/trunk/SOURCE/user_flight.f90
- Timestamp:
- Apr 15, 2020 2:26:31 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/user_flight.f90
r4360 r4498 1 1 !> @file user_flight.f90 2 !------------------------------------------------------------------------------ !2 !--------------------------------------------------------------------------------------------------! 3 3 ! This file is part of the PALM model system. 4 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. 5 ! PALM is free software: you can redistribute it and/or modify it under the terms of the GNU General 6 ! Public License as published by the Free Software Foundation, either version 3 of the License, or 7 ! (at your option) any later version. 9 8 ! 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 FOR12 ! A PARTICULAR PURPOSE. See the GNU GeneralPublic License for more details.9 ! PALM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the 10 ! implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 11 ! Public License for more details. 13 12 ! 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/>.13 ! You should have received a copy of the GNU General Public License along with PALM. If not, see 14 ! <http://www.gnu.org/licenses/>. 16 15 ! 17 16 ! Copyright 1997-2020 Leibniz Universitaet Hannover 18 !------------------------------------------------------------------------------! 17 !--------------------------------------------------------------------------------------------------! 18 ! 19 19 ! 20 20 ! Current revisions: 21 ! ----------------- -21 ! ----------------- 22 22 ! 23 23 ! … … 25 25 ! ----------------- 26 26 ! $Id$ 27 ! file re-formatted to follow the PALM coding standard 28 ! 29 ! 30 ! 4360 2020-01-07 11:25:50Z suehring 27 31 ! Corrected "Former revisions" section 28 ! 32 ! 29 33 ! 3768 2019-02-27 14:35:58Z raasch 30 34 ! unused variables commented out + statement added to avoid compiler warnings 31 ! 35 ! 32 36 ! 3684 2019-01-20 20:20:58Z knoop 33 37 ! Corrected "Former revisions" section 34 ! 38 ! 35 39 ! 1957 2016-07-07 10:43:48Z suehring 36 40 ! Initial revision … … 38 42 ! Description: 39 43 ! ------------ 40 !> Calculation of user-defined output quantity for flight measurements after 41 !> each timestep. 42 !------------------------------------------------------------------------------! 44 !> Calculation of user-defined output quantity for flight measurements after each timestep. 45 !--------------------------------------------------------------------------------------------------! 43 46 SUBROUTINE user_flight( var, id ) 44 47 45 48 USE control_parameters 46 49 47 50 USE grid_variables 48 51 … … 60 63 ! INTEGER(iwp) :: j !< index along y 61 64 ! INTEGER(iwp) :: k !< index along z 62 INTEGER(iwp) :: id !< variable identifyer, according to the settings in user_init_flight63 64 REAL(wp), DIMENSION(nzb:nzt+1,nysg:nyng,nxlg:nxrg) :: var !< treated variable65 INTEGER(iwp) :: id !< variable identifyer, according to the settings in user_init_flight 66 67 REAL(wp), DIMENSION(nzb:nzt+1,nysg:nyng,nxlg:nxrg) :: var !< treated variable 65 68 66 69 ! … … 69 72 70 73 ! 71 !-- Here, the respective variable is calculated. There is no call of 72 !-- exchange_horiz necessary. 73 !-- The variable identifyer (id) must be set according to the settings in 74 !-- user_init_flight. 74 !-- Here, the respective variable is calculated. There is no call of exchange_horiz necessary. 75 !-- The variable identifyer (id) must be set according to the settings in user_init_flight. 75 76 !-- Please note, so far, variable must be located at the center of a grid box. 76 77 ! var = 0.0_wp 77 78 78 79 ! SELECT CASE ( id ) 79 ! 80 ! 80 81 ! CASE ( 1 ) 81 ! DO i = nxl-1, nxr+182 ! DO j = nys-1, nyn+183 ! DO k = nzb, nzt82 ! DO i = nxl-1, nxr+1 83 ! DO j = nys-1, nyn+1 84 ! DO k = nzb, nzt 84 85 ! var(k,j,i) = ABS( u(k,j,i ) 85 86 ! ENDDO 86 87 ! ENDDO 87 88 ! ENDDO 88 ! 89 ! 89 90 ! CASE ( 2 ) 90 ! DO i = nxl-1, nxr+191 ! DO j = nys-1, nyn+192 ! DO k = nzb, nzt91 ! DO i = nxl-1, nxr+1 92 ! DO j = nys-1, nyn+1 93 ! DO k = nzb, nzt 93 94 ! var(k,j,i) = ABS( v(k,j,i) ) 94 95 ! ENDDO 95 96 ! ENDDO 96 97 ! ENDDO 97 ! 98 ! 98 99 ! END SELECT 99 100
Note: See TracChangeset
for help on using the changeset viewer.