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

Last change on this file since 2000 was 2000, checked in by knoop, 5 years ago

Forced header and separation lines into 80 columns

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