Changeset 4426
- Timestamp:
- Feb 27, 2020 10:02:19 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/wind_turbine_model_mod.f90
r4423 r4426 26 26 ! ----------------- 27 27 ! $Id$ 28 ! define time as unlimited dimension so that no maximum number 29 ! of time steps has to be given for wtm_data_output 30 ! 31 ! 4423 2020-02-25 07:17:11Z maronga 28 32 ! Switched to serial output as data is aggerated before anyway. 29 33 ! … … 173 177 LOGICAL :: initial_write_coordinates = .FALSE. 174 178 175 REAL(wp) :: dt_data_output_wtm = 1.0_wp !< data output interval179 REAL(wp) :: dt_data_output_wtm = 0.0_wp !< data output interval 176 180 REAL(wp) :: time_wtm = 0.0_wp !< time since last data output 177 181 … … 654 658 ENDIF 655 659 656 IF ( dt_data_output_wtm <= 0.0 ) THEN657 message_string = 'dt_data_output_wtm must be > 0.0'658 CALL message( 'check_parameters', 'PA0709', 1, 2, 0, 6, 0 )659 ENDIF660 661 662 660 END SUBROUTINE wtm_check_parameters 663 661 ! … … 1288 1286 1289 1287 1290 INTEGER(iwp) :: ntimesteps !< number of timesteps defined in NetCDF output file1291 INTEGER(iwp) :: ntimesteps_max = 80000 !< number of maximum timesteps defined in NetCDF output file1288 ! INTEGER(iwp) :: ntimesteps !< number of timesteps defined in NetCDF output file 1289 ! INTEGER(iwp) :: ntimesteps_max = 80000 !< number of maximum timesteps defined in NetCDF output file 1292 1290 INTEGER(iwp) :: return_value !< returned status value of called function 1293 1291 … … 1301 1299 nc_filename = 'DATA_1D_TS_WTM_NETCDF' // TRIM( coupling_char ) 1302 1300 return_value = dom_def_file( nc_filename, 'netcdf4-serial' ) 1303 1304 ntimesteps = MIN( CEILING( & 1305 ( end_time - MAX( time_turbine_on, time_since_reference_point ) & 1306 ) / MAX( 0.1_wp, dt_data_output_wtm ) ), ntimesteps_max ) 1307 1308 1301 1309 1302 IF ( myid == 0 ) THEN 1310 1303 ! … … 1321 1314 DEALLOCATE( ndim ) 1322 1315 1323 1324 1316 ! 1325 1317 !-- time 1326 1318 return_value = dom_def_dim( nc_filename, & 1327 dimension_name = 'time', & 1328 output_type = 'real32', & 1329 bounds = (/1_iwp, ntimesteps/), & 1330 values_realwp = (/0.0_wp/) ) 1331 1319 dimension_name = 'time', & 1320 output_type = 'real32', & 1321 bounds = (/1_iwp/), & 1322 values_realwp = (/0.0_wp/) ) 1332 1323 1333 1324 !
Note: See TracChangeset
for help on using the changeset viewer.