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

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