Changeset 4848 for palm/trunk/SOURCE/synthetic_turbulence_generator_mod.f90
- Timestamp:
- Jan 21, 2021 3:51:51 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/synthetic_turbulence_generator_mod.f90
r4843 r4848 25 25 ! ----------------- 26 26 ! $Id$ 27 ! replaced use_syn_turb_gen by syn_turb_gen 28 ! 29 ! 4843 2021-01-15 15:22:11Z raasch 27 30 ! local namelist parameter added to switch off the module although the respective module namelist 28 31 ! appears in the namelist file … … 365 368 LOGICAL :: parametrize_inflow_turbulence = .FALSE. !< flag indicating that inflow turbulence is either read from file 366 369 !< (.FALSE.) or if it parametrized 367 LOGICAL :: use_syn_turb_gen = .FALSE. !< switch to use synthetic turbulence generator368 370 LOGICAL :: velocity_seed_initialized = .FALSE. !< true after first call of stg_main 369 371 … … 519 521 parametrize_inflow_turbulence, & 520 522 time_stg_adjust, & 521 time_stg_call, & 522 use_syn_turb_gen 523 time_stg_call 523 524 524 525 … … 533 534 SUBROUTINE stg_check_parameters 534 535 535 IF ( .NOT. use_syn_turb_gen .AND. .NOT. rans_mode .AND. &536 IF ( .NOT. syn_turb_gen .AND. .NOT. rans_mode .AND. & 536 537 nesting_offline ) THEN 537 538 message_string = 'Synthetic turbulence generator is required ' // & … … 540 541 ENDIF 541 542 542 IF ( .NOT. use_syn_turb_gen .AND. child_domain &543 IF ( .NOT. syn_turb_gen .AND. child_domain & 543 544 .AND. rans_mode_parent .AND. .NOT. rans_mode ) THEN 544 545 message_string = 'Synthetic turbulence generator is required when nesting is applied ' // & … … 547 548 ENDIF 548 549 549 IF ( use_syn_turb_gen ) THEN550 IF ( syn_turb_gen ) THEN 550 551 551 552 IF ( child_domain .AND. .NOT. rans_mode .AND. .NOT. rans_mode_parent ) THEN … … 613 614 ! 614 615 !-- Write synthetic turbulence generator Header 615 WRITE( io, 1 ) 616 IF ( use_syn_turb_gen ) THEN 617 WRITE( io, 2 ) 618 ELSE 619 WRITE( io, 3 ) 620 ENDIF 621 622 IF ( parametrize_inflow_turbulence ) THEN 623 WRITE( io, 4 ) dt_stg_adjust 624 ELSE 625 WRITE( io, 5 ) 616 IF ( syn_turb_gen ) THEN 617 WRITE( io, 1 ) 618 IF ( parametrize_inflow_turbulence ) THEN 619 WRITE( io, 4 ) dt_stg_adjust 620 ELSE 621 WRITE( io, 5 ) 622 ENDIF 626 623 ENDIF 627 624 628 625 1 FORMAT (//' Synthetic turbulence generator information:'/ & 629 626 ' ------------------------------------------'/) 630 2 FORMAT (' synthetic turbulence generator is switched on')631 3 FORMAT (' synthetic turbulence generator is switched off')632 627 4 FORMAT (' imposed turbulence statistics are parametrized and ajdusted to boundary-layer development each ', F8.2, ' s' ) 633 628 5 FORMAT (' imposed turbulence is read from file' ) … … 1228 1223 dt_stg_adjust, & 1229 1224 dt_stg_call, & 1230 switch_off_module, & 1231 use_syn_turb_gen 1225 switch_off_module 1232 1226 1233 1227 … … 1278 1272 READ ( 13 ) time_stg_call 1279 1273 1280 CASE ( 'use_syn_turb_gen' )1281 READ ( 13 ) use_syn_turb_gen1282 1283 1274 CASE DEFAULT 1284 1275 … … 1300 1291 CALL rrd_mpi_io( 'time_stg_adjust', time_stg_adjust ) 1301 1292 CALL rrd_mpi_io( 'time_stg_call', time_stg_call ) 1302 CALL rrd_mpi_io( 'use_syn_turb_gen', use_syn_turb_gen )1303 1293 1304 1294 END SUBROUTINE stg_rrd_global_mpi … … 1320 1310 WRITE ( 14 ) time_stg_call 1321 1311 1322 CALL wrd_write_string( 'use_syn_turb_gen' )1323 WRITE ( 14 ) use_syn_turb_gen1324 1325 1312 ELSEIF ( restart_data_format_output(1:3) == 'mpi' ) THEN 1326 1313 1327 1314 CALL wrd_mpi_io( 'time_stg_adjust', time_stg_adjust ) 1328 1315 CALL wrd_mpi_io( 'time_stg_call', time_stg_call ) 1329 CALL wrd_mpi_io( 'use_syn_turb_gen', use_syn_turb_gen )1330 1316 1331 1317 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.