Changeset 4498 for palm/trunk/SOURCE/user_init_flight.f90
- Timestamp:
- Apr 15, 2020 2:26:31 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/user_init_flight.f90
r4360 r4498 1 1 !> @file user_init_flight.f90 2 !------------------------------------------------------------------------------ !2 !--------------------------------------------------------------------------------------------------! 3 3 ! This file is part of the PALM model system. 4 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. 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. 9 8 ! 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 FOR12 ! A PARTICULAR PURPOSE. See the GNU GeneralPublic License for more details.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. 13 12 ! 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/>.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/>. 16 15 ! 17 16 ! Copyright 1997-2020 Leibniz Universitaet Hannover 18 !------------------------------------------------------------------------------! 17 !--------------------------------------------------------------------------------------------------! 18 ! 19 19 ! 20 20 ! Current revisions: … … 25 25 ! ----------------- 26 26 ! $Id$ 27 ! file re-formatted to follow the PALM coding standard 28 ! 29 ! 30 ! 4360 2020-01-07 11:25:50Z suehring 27 31 ! Corrected "Former revisions" section 28 ! 32 ! 29 33 ! 3768 2019-02-27 14:35:58Z raasch 30 34 ! statements commented or added to avoid compiler warnings about unused variables 31 ! 35 ! 32 36 ! 3655 2019-01-07 16:51:22Z knoop 33 37 ! Corrected "Former revisions" section 34 ! 38 ! 35 39 ! 1957 2016-07-07 10:43:48Z suehring 36 40 ! Initial revision … … 39 43 ! ------------ 40 44 !> Execution of user-defined initialization for flight measurements. 41 !------------------------------------------------------------------------------ !45 !--------------------------------------------------------------------------------------------------! 42 46 SUBROUTINE user_init_flight( init, k, id, label_leg ) 43 47 44 48 45 49 USE control_parameters 46 50 47 51 USE indices 48 52 49 53 USE kinds 50 51 ! USE netcdf_interface, & 52 ! ONLY: dofl_label, dofl_unit 53 54 55 ! USE netcdf_interface, & 56 ! ONLY: dofl_label, & 57 ! dofl_unit 58 54 59 USE user 55 60 56 61 IMPLICIT NONE 57 62 58 63 CHARACTER(LEN=10), OPTIONAL :: label_leg !< label of the respective leg 59 64 60 65 INTEGER(iwp), OPTIONAL :: id !< variable index 61 66 INTEGER(iwp), OPTIONAL, INTENT(INOUT) :: k !< index for respective variable and leg 62 63 LOGICAL :: init !< variable to recognize initial call 67 68 LOGICAL :: init !< variable to recognize initial call 64 69 65 70 ! … … 71 76 ! 72 77 !-- 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. 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. 76 80 77 81 … … 80 84 !-- The number of user-defined quantity has to be increased appropriately. 81 85 !-- In the following example, 2 user-defined quantities are added. 82 ! num_var_fl_user = num_var_fl_user + 2 86 ! num_var_fl_user = num_var_fl_user + 2 83 87 84 88 init = .FALSE. 85 89 86 90 ELSE 87 91 88 92 ! 89 93 !-- Please add the respective number of new variables as following: 90 94 91 95 ! SELECT CASE ( id ) 92 ! 96 ! 93 97 ! CASE ( 1 ) 94 98 ! dofl_label(k) = TRIM(label_leg) // '_' // 'abs_u' 95 99 ! dofl_unit(k) = 'm/s' 96 100 ! k = k + 1 97 ! 101 ! 98 102 ! CASE ( 2 ) 99 ! 103 ! 100 104 ! dofl_label(k) = TRIM(label_leg) // '_' // 'abs_v' 101 105 ! dofl_unit(k) = 'm/s' 102 106 ! k = k + 1 103 ! 107 ! 104 108 ! END SELECT 105 109 106 110 ENDIF 107 111 108 112 END SUBROUTINE user_init_flight 109 113
Note: See TracChangeset
for help on using the changeset viewer.