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

Last change on this file since 4394 was 4360, checked in by suehring, 5 years ago

Bugfix in output of time-averaged plant-canopy quanities; Output of plant-canopy data only where tall canopy is defined; land-surface model: fix wrong location strings; tests: update urban test case; all source code files: copyright update

  • Property svn:keywords set to Id
File size: 3.3 KB
RevLine 
[1957]1!> @file user_init_flight.f90
[2000]2!------------------------------------------------------------------------------!
[2696]3! This file is part of the PALM model system.
[1957]4!
[2000]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.
[1957]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!
[4360]17! Copyright 1997-2020 Leibniz Universitaet Hannover
[2000]18!------------------------------------------------------------------------------!
[1957]19!
20! Current revisions:
21! -----------------
22!
[2001]23!
[1957]24! Former revisions:
25! -----------------
26! $Id: user_init_flight.f90 4360 2020-01-07 11:25:50Z maronga $
[4182]27! Corrected "Former revisions" section
28!
29! 3768 2019-02-27 14:35:58Z raasch
[3768]30! statements commented or added to avoid compiler warnings about unused variables
31!
32! 3655 2019-01-07 16:51:22Z knoop
[2716]33! Corrected "Former revisions" section
34!
[4182]35! 1957 2016-07-07 10:43:48Z suehring
36! Initial revision
[1957]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   
[3768]51!    USE netcdf_interface,                                                      &
52!        ONLY: dofl_label, dofl_unit
[1957]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
[3768]64
[1957]65!
[3768]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!
[1957]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.