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

Last change on this file since 4180 was 4180, checked in by scharf, 5 years ago

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

  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1!> @file user_init_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_init_flight.f90 4180 2019-08-21 14:37:54Z scharf $
27! statements commented or added to avoid compiler warnings about unused variables
28!
29! 3655 2019-01-07 16:51:22Z knoop
30! Corrected "Former revisions" section
31!
32!
33! Description:
34! ------------
35!> Execution of user-defined initialization for flight measurements.
36!------------------------------------------------------------------------------!
37 SUBROUTINE user_init_flight( init, k, id, label_leg )
38 
39
40    USE control_parameters
41   
42    USE indices
43   
44    USE kinds
45   
46!    USE netcdf_interface,                                                      &
47!        ONLY: dofl_label, dofl_unit
48   
49    USE user
50
51    IMPLICIT NONE
52   
53    CHARACTER(LEN=10), OPTIONAL ::  label_leg     !< label of the respective leg
54   
55    INTEGER(iwp), OPTIONAL                ::  id  !< variable index
56    INTEGER(iwp), OPTIONAL, INTENT(INOUT) ::  k   !< index for respective variable and leg
57   
58    LOGICAL ::  init  !< variable to recognize initial call
59
60!
61!-- Following statements are added to avoid compiler warnings about unused variables. Please remove.
62    IF ( PRESENT( id )        )  CONTINUE
63    IF ( PRESENT( k )         )  CONTINUE
64    IF ( PRESENT( label_leg ) )  CONTINUE
65
66!
67!-- Sample for user-defined flight-time series.
68!-- For each quantity you have to give a label and a unit, which will be used
69!-- for the output into NetCDF file. They must not contain more than
70!-- twenty characters.
71
72
73    IF ( init )  THEN
74!
75!--    The number of user-defined quantity has to be increased appropriately.
76!--    In the following example, 2 user-defined quantities are added.
77!        num_var_fl_user = num_var_fl_user + 2
78
79       init = .FALSE.
80   
81    ELSE
82   
83!
84!--    Please add the respective number of new variables as following:
85     
86!        SELECT CASE ( id )
87!       
88!           CASE ( 1 )
89!              dofl_label(k)   = TRIM(label_leg) // '_' // 'abs_u'
90!              dofl_unit(k)    = 'm/s'
91!              k               = k + 1
92!             
93!           CASE ( 2 )
94!     
95!              dofl_label(k)   = TRIM(label_leg) // '_' // 'abs_v'
96!              dofl_unit(k)    = 'm/s'
97!              k               = k + 1
98!             
99!        END SELECT
100
101    ENDIF
102       
103 END SUBROUTINE user_init_flight
104
Note: See TracBrowser for help on using the repository browser.