Changeset 2776 for palm/trunk/SOURCE/synthetic_turbulence_generator_mod.f90
- Timestamp:
- Jan 31, 2018 10:44:42 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/synthetic_turbulence_generator_mod.f90
r2716 r2776 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Variable synthetic_turbulence_generator use_synthetic_turbulence_generator has 28 ! been abbreviated + syn_turb_gen_prerun flag is used to define if module 29 ! related parameters were outputted as restart data 30 ! 31 ! 2716 2017-12-29 16:35:59Z kanani 27 32 ! Corrected "Former revisions" section 28 33 ! … … 83 88 USE control_parameters, & 84 89 ONLY: initializing_actions, message_string, & 85 syn thetic_turbulence_generator90 syn_turb_gen, syn_turb_gen_prerun 86 91 87 92 USE cpulog, & … … 104 109 IMPLICIT NONE 105 110 106 LOGICAL :: velocity_seed_initialized = .FALSE. 107 LOGICAL :: use_syn thetic_turbulence_generator = .FALSE.!< switch to use synthetic turbulence generator111 LOGICAL :: velocity_seed_initialized = .FALSE. !< true after first call of stg_main 112 LOGICAL :: use_syn_turb_gen = .FALSE. !< switch to use synthetic turbulence generator 108 113 109 114 INTEGER(iwp) :: stg_type_yz !< MPI type for full z range … … 221 226 ! 222 227 !-- Public variables 223 PUBLIC use_syn thetic_turbulence_generator228 PUBLIC use_syn_turb_gen 224 229 225 230 … … 241 246 IMPLICIT NONE 242 247 243 IF ( use_syn thetic_turbulence_generator) THEN248 IF ( use_syn_turb_gen ) THEN 244 249 245 250 IF ( INDEX( initializing_actions, 'set_constant_profiles' ) == 0 .AND. & … … 288 293 !-- Write synthetic turbulence generator Header 289 294 WRITE( io, 1 ) 290 IF ( use_syn thetic_turbulence_generator) THEN295 IF ( use_syn_turb_gen ) THEN 291 296 WRITE( io, 2 ) 292 297 ELSE … … 665 670 666 671 667 NAMELIST /stg_par/ use_syn thetic_turbulence_generator672 NAMELIST /stg_par/ use_syn_turb_gen 668 673 669 674 line = ' ' … … 685 690 !-- Set flag that indicates that the synthetic turbulence generator is switched 686 691 !-- on 687 syn thetic_turbulence_generator= .TRUE.692 syn_turb_gen = .TRUE. 688 693 689 694 IF ( TRIM( initializing_actions ) == 'read_restart_data' ) THEN … … 738 743 SELECT CASE ( TRIM( variable_chr ) ) 739 744 740 CASE ( 'use_syn thetic_turbulence_generator' )741 READ ( 13 ) use_syn thetic_turbulence_generator745 CASE ( 'use_syn_turb_gen' ) 746 READ ( 13 ) use_syn_turb_gen 742 747 CASE ( 'mc_factor' ) 743 748 READ ( 13 ) mc_factor 749 CASE ( 'syn_turb_gen_prerun' ) 750 READ ( 13 ) syn_turb_gen_prerun 744 751 745 752 END SELECT … … 762 769 IMPLICIT NONE 763 770 764 WRITE ( 14 ) 'use_synthetic_turbulence_generator ' 765 WRITE ( 14 ) use_synthetic_turbulence_generator 766 WRITE ( 14 ) 'mc_factor ' 771 syn_turb_gen_prerun = .TRUE. 772 773 WRITE ( 14 ) 'use_syn_turb_gen ' 774 WRITE ( 14 ) use_syn_turb_gen 775 WRITE ( 14 ) 'mc_factor ' 767 776 WRITE ( 14 ) mc_factor 768 769 WRITE ( 14 ) '*** end stg module *** ' 777 WRITE ( 14 ) 'syn_turb_gen_prerun ' 778 WRITE ( 14 ) syn_turb_gen_prerun 779 780 WRITE ( 14 ) '*** end stg module *** ' 770 781 771 782 END SUBROUTINE stg_write_restart_data
Note: See TracChangeset
for help on using the changeset viewer.