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

Last change on this file since 2703 was 2696, checked in by kanani, 7 years ago

Merge of branch palm4u into trunk

  • Property svn:keywords set to Id
File size: 2.9 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-2017 Leibniz Universitaet Hannover
18!------------------------------------------------------------------------------!
19!
20! Current revisions:
21! -----------------
22!
23!
24! Former revisions:
25! -----------------
26! $Id: user_init_flight.f90 2696 2017-12-14 17:12:51Z maronga $
27!
28! 2000 2016-08-20 18:09:15Z knoop
29! Forced header and separation lines into 80 columns
30!
31! 1957 2016-07-07 10:43:48Z suehring
32! Initial revision
33!
34! Description:
35! ------------
36!> Execution of user-defined initialization for flight measurements.
37!------------------------------------------------------------------------------!
38 SUBROUTINE user_init_flight( init, k, id, label_leg )
39 
40
41    USE control_parameters
42   
43    USE indices
44   
45    USE kinds
46   
47    USE netcdf_interface,                                                      &
48        ONLY: dofl_label, dofl_unit
49   
50    USE user
51
52    IMPLICIT NONE
53   
54    CHARACTER(LEN=10), OPTIONAL ::  label_leg     !< label of the respective leg
55   
56    INTEGER(iwp), OPTIONAL                ::  id  !< variable index
57    INTEGER(iwp), OPTIONAL, INTENT(INOUT) ::  k   !< index for respective variable and leg
58   
59    LOGICAL ::  init  !< variable to recognize initial call
60!
61!-- Sample for user-defined flight-time series.
62!-- For each quantity you have to give a label and a unit, which will be used
63!-- for the output into NetCDF file. They must not contain more than
64!-- twenty characters.
65
66
67    IF ( init )  THEN
68!
69!--    The number of user-defined quantity has to be increased appropriately.
70!--    In the following example, 2 user-defined quantities are added.
71!        num_var_fl_user = num_var_fl_user + 2
72
73       init = .FALSE.
74   
75    ELSE
76   
77!
78!--    Please add the respective number of new variables as following:
79     
80!        SELECT CASE ( id )
81!       
82!           CASE ( 1 )
83!              dofl_label(k)   = TRIM(label_leg) // '_' // 'abs_u'
84!              dofl_unit(k)    = 'm/s'
85!              k               = k + 1
86!             
87!           CASE ( 2 )
88!     
89!              dofl_label(k)   = TRIM(label_leg) // '_' // 'abs_v'
90!              dofl_unit(k)    = 'm/s'
91!              k               = k + 1
92!             
93!        END SELECT
94
95    ENDIF
96       
97 END SUBROUTINE user_init_flight
98
Note: See TracBrowser for help on using the repository browser.