Changeset 3701 for palm/trunk/SOURCE/module_interface.f90
- Timestamp:
- Jan 26, 2019 6:57:21 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/module_interface.f90
r3700 r3701 270 270 271 271 USE user, & 272 ONLY: user_parin, & 272 ONLY: user_module_enabled, & 273 user_parin, & 273 274 user_check_parameters, & 274 275 user_check_data_output_ts, & … … 479 480 IF ( urban_surface ) CALL usm_check_parameters 480 481 IF ( wind_turbine ) CALL wtm_check_parameters 481 482 IF ( user_module_enabled ) CALL user_check_parameters 482 483 483 484 … … 503 504 ENDIF 504 505 505 CALL user_check_data_output_ts( dots_max, dots_num, dots_label, dots_unit ) 506 IF ( user_module_enabled ) THEN 507 CALL user_check_data_output_ts( dots_max, dots_num, dots_label, dots_unit ) 508 ENDIF 506 509 507 510 … … 551 554 ENDIF 552 555 553 IF ( unit == 'illegal' ) THEN556 IF ( unit == 'illegal' .AND. user_module_enabled ) THEN 554 557 unit = '' ! ToDo: Seems like a hack. Find a general soultion! 555 558 CALL user_check_data_output_pr( variable, var_count, unit, dopr_unit ) … … 618 621 ENDIF 619 622 620 IF ( unit == 'illegal' ) THEN623 IF ( unit == 'illegal' .AND. user_module_enabled ) THEN 621 624 unit = '' 622 625 CALL user_check_data_output( variable, unit ) … … 652 655 ENDIF 653 656 654 IF ( unit == 'illegal' ) THEN657 IF ( unit == 'illegal' .AND. user_module_enabled ) THEN 655 658 unit = '' 656 659 CALL user_check_data_output( variable, unit ) … … 732 735 IF ( wind_turbine ) CALL wtm_init 733 736 IF ( radiation ) CALL radiation_init 734 737 IF ( user_module_enabled ) CALL user_init 735 738 736 739 … … 763 766 IF ( calculate_spectra ) CALL spectra_header( io ) 764 767 IF ( syn_turb_gen ) CALL stg_header( io ) 765 766 CALL user_header( io ) ! ToDo: make user module switch 768 IF ( user_module_enabled ) CALL user_header( io ) 767 769 768 770 … … 782 784 783 785 IF ( gust_module_enabled ) CALL gust_actions( location ) 784 785 CALL user_actions( location ) ! ToDo: make user module switch 786 IF ( user_module_enabled ) CALL user_actions( location ) 786 787 787 788 … … 803 804 804 805 IF ( gust_module_enabled ) CALL gust_actions( i, j, location ) 805 806 CALL user_actions( i, j, location ) ! ToDo: make user module switch 806 IF ( user_module_enabled ) CALL user_actions( i, j, location ) 807 807 808 808 … … 853 853 IF ( salsa ) CALL salsa_3d_data_averaging( mode, variable ) 854 854 IF ( urban_surface ) CALL usm_3d_data_averaging( mode, variable ) 855 856 CALL user_3d_data_averaging( mode, variable ) ! ToDo: make user module switch 855 IF ( user_module_enabled ) CALL user_3d_data_averaging( mode, variable ) 857 856 858 857 … … 930 929 ENDIF 931 930 932 IF ( .NOT. found ) THEN ! ToDo: make user module switch931 IF ( .NOT. found .AND. user_module_enabled ) THEN 933 932 CALL user_data_output_2d( & 934 933 av, variable, found, grid, local_pf, two_d, nzb_do, nzt_do & … … 1000 999 ENDIF 1001 1000 1002 IF ( .NOT. found ) THEN ! ToDo: make user module switch1001 IF ( .NOT. found .AND. user_module_enabled ) THEN 1003 1002 CALL user_data_output_3d( av, variable, found, local_pf, nzb_do, nzt_do ) 1004 1003 resorted = .TRUE. … … 1024 1023 IF ( gust_module_enabled ) CALL gust_statistics( mode, sr, tn, dots_max ) 1025 1024 IF ( air_chemistry ) CALL chem_statistics( mode, sr, tn ) 1026 1027 CALL user_statistics( mode, sr, tn ) ! ToDo: make user module switch 1025 IF ( user_module_enabled ) CALL user_statistics( mode, sr, tn ) 1028 1026 1029 1027 … … 1049 1047 IF ( .NOT. found ) CALL stg_rrd_global ( found ) ! ToDo: change interface to pass variable 1050 1048 IF ( .NOT. found ) CALL wtm_rrd_global( found ) ! ToDo: change interface to pass variable 1051 1052 1049 IF ( .NOT. found ) CALL user_rrd_global( found ) ! ToDo: change interface to pass variable 1053 1050 … … 1071 1068 IF ( syn_turb_gen ) CALL stg_wrd_global 1072 1069 IF ( wind_turbine ) CALL wtm_wrd_global 1073 1074 CALL user_wrd_global ! ToDo: make user module switch 1070 IF ( user_module_enabled ) CALL user_wrd_global 1075 1071 1076 1072 … … 1218 1214 IF ( salsa ) CALL salsa_wrd_local 1219 1215 IF ( urban_surface ) CALL usm_wrd_local 1220 1221 CALL user_wrd_local ! ToDo: make user module switch 1216 IF ( user_module_enabled ) CALL user_wrd_local 1222 1217 1223 1218 … … 1233 1228 1234 1229 1235 CALL user_last_actions ! ToDo: make user module switch1230 IF ( user_module_enabled ) CALL user_last_actions 1236 1231 1237 1232
Note: See TracChangeset
for help on using the changeset viewer.