Changeset 4583 for palm/trunk/SOURCE/data_output_tseries.f90
- Timestamp:
- Jun 29, 2020 12:36:47 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/data_output_tseries.f90
r4360 r4583 1 1 !> @file data_output_tseries.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 !--------------------------------------------------------------------------------------------------! 19 18 ! 20 19 ! Current revisions: … … 25 24 ! ----------------- 26 25 ! $Id$ 26 ! file re-formatted to follow the PALM coding standard 27 ! 28 ! 4360 2020-01-07 11:25:50Z suehring 27 29 ! Corrected "Former revisions" section 28 ! 30 ! 29 31 ! 3655 2019-01-07 16:51:22Z knoop 30 32 ! unused format removed … … 36 38 ! Description: 37 39 ! ------------ 38 !> Time series output for PROFIL. Always all time series are stored. A selection 39 !> can be applied viathe PROFIL-parameters in close_file.40 !------------------------------------------------------------------------------ !40 !> Time series output for PROFIL. Always all time series are stored. A selection can be applied via 41 !> the PROFIL-parameters in close_file. 42 !--------------------------------------------------------------------------------------------------! 41 43 SUBROUTINE data_output_tseries 42 43 44 44 USE control_parameters, & 45 46 USE control_parameters, & 45 47 ONLY: dots_time_count, time_since_reference_point 46 48 47 USE cpulog, &48 ONLY: cpu_log, log_point 49 USE cpulog, & 50 ONLY: cpu_log, log_point 49 51 50 52 USE kinds … … 53 55 USE NETCDF 54 56 #endif 55 USE netcdf_interface, & 56 ONLY: dots_num, id_set_ts, id_var_dots, id_var_time_ts, nc_stat, & 57 netcdf_handle_error 57 USE netcdf_interface, & 58 ONLY: dots_num, id_set_ts, id_var_dots, id_var_time_ts, nc_stat, netcdf_handle_error 58 59 59 60 USE pegrid 60 61 61 62 USE profil_parameter 62 63 USE statistics, &63 64 USE statistics, & 64 65 ONLY: flow_statistics_called, statistic_regions, ts_value 65 66 … … 84 85 !-- Open file for time series output in NetCDF format 85 86 CALL check_open( 105 ) 86 87 87 88 !-- Increment the counter for number of output times 88 ! CAUTION: The following line has to be after the call of the subroutine 89 ! check_open, since check_open resets the counter dots_time_count 90 ! to 0, if a new file is opened 89 !-- CAUTION: The following line has to be after the call of the subroutine check_open, since 90 !-- check_open resets the counter dots_time_count to 0, if a new file is opened 91 91 dots_time_count = dots_time_count + 1 92 92 93 93 #if defined( __netcdf ) 94 94 ! 95 95 !-- Update the time series time axis 96 nc_stat = NF90_PUT_VAR( id_set_ts, id_var_time_ts, &97 (/ time_since_reference_point /), &98 start = (/ dots_time_count /), &96 nc_stat = NF90_PUT_VAR( id_set_ts, id_var_time_ts, & 97 (/ time_since_reference_point /), & 98 start = (/ dots_time_count /), & 99 99 count = (/ 1 /) ) 100 100 CALL netcdf_handle_error( 'data_output_tseries', 350 ) … … 108 108 #if defined( __netcdf ) 109 109 DO i = 1, dots_num 110 nc_stat = NF90_PUT_VAR( id_set_ts, id_var_dots(i,sr), &111 (/ ts_value(i,sr) /), &112 start = (/ dots_time_count /), &110 nc_stat = NF90_PUT_VAR( id_set_ts, id_var_dots(i,sr), & 111 (/ ts_value(i,sr) /), & 112 start = (/ dots_time_count /), & 113 113 count = (/ 1 /) ) 114 114 CALL netcdf_handle_error( 'data_output_tseries', 351 )
Note: See TracChangeset
for help on using the changeset viewer.