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

Last change on this file since 4498 was 4498, checked in by raasch, 4 years ago

bugfix for creation of filetypes, argument removed from rd_mpi_io_open, files re-formatted to follow the PALM coding standard

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