Changeset 3622 for palm/trunk/SOURCE/bulk_cloud_model_mod.f90
- Timestamp:
- Dec 12, 2018 9:52:53 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/bulk_cloud_model_mod.f90
r3507 r3622 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Important bugfix in case of restart runs. 28 ! 29 ! 3507 2018-11-08 14:28:46Z schwenkel 27 30 ! Minor bugfixes for bcm cache version and initializing prr 28 31 ! … … 209 212 intermediate_timestep_count_max, large_scale_forcing, & 210 213 lsf_surf, pt_surface, rho_surface, surface_pressure, & 211 time_do2d_xy, message_string 214 time_do2d_xy, message_string, initializing_actions 212 215 213 216 USE cpulog, & … … 927 930 928 931 IF ( bulk_cloud_model ) THEN 929 930 ! dots_label(dots_num+1) = 'some_var' 931 ! dots_unit(dots_num+1) = 'm/s' 932 ! 933 ! dots_num_palm = dots_num 934 ! dots_num = dots_num + 1 935 ! ! 936 ! !-- Stuff for the module 937 ! 938 ! abs_velocity = 0.0_wp 939 940 ! 941 !-- Initialize the remaining quantities 942 IF ( microphysics_morrison ) THEN 943 DO i = nxlg, nxrg 944 DO j = nysg, nyng 945 qc(:,j,i) = 0.0_wp 946 nc(:,j,i) = 0.0_wp 932 IF ( TRIM( initializing_actions ) /= 'read_restart_data' ) THEN 933 ! 934 !-- Initialize the remaining quantities 935 IF ( microphysics_morrison ) THEN 936 DO i = nxlg, nxrg 937 DO j = nysg, nyng 938 qc(:,j,i) = 0.0_wp 939 nc(:,j,i) = 0.0_wp 940 ENDDO 947 941 ENDDO 948 END DO949 ENDIF 950 951 IF ( microphysics_seifert ) THEN952 DO i = nxlg, nxrg953 DO j = nysg, nyng954 qr(:,j,i) = 0.0_wp955 nr(:,j,i) = 0.0_wp942 ENDIF 943 944 IF ( microphysics_seifert ) THEN 945 DO i = nxlg, nxrg 946 DO j = nysg, nyng 947 qr(:,j,i) = 0.0_wp 948 nr(:,j,i) = 0.0_wp 949 ENDDO 956 950 ENDDO 957 ENDDO 958 ENDIF 959 960 ! 961 !-- Liquid water content and precipitation amount 962 !-- are zero at beginning of the simulation 963 ql = 0.0_wp 964 ! TODO ??? 965 qc = 0.0_wp 966 precipitation_amount = 0.0_wp 967 prr = 0.0_wp 968 969 ! 970 !-- Initialize old and new time levels. 971 IF ( microphysics_morrison ) THEN 972 tqc_m = 0.0_wp 973 tnc_m = 0.0_wp 974 qc_p = qc 975 nc_p = nc 976 ENDIF 977 IF ( microphysics_seifert ) THEN 978 tqr_m = 0.0_wp 979 tnr_m = 0.0_wp 980 qr_p = qr 981 nr_p = nr 982 ENDIF 983 951 ENDIF 952 ! 953 !-- Liquid water content and precipitation amount 954 !-- are zero at beginning of the simulation 955 ql = 0.0_wp 956 qc = 0.0_wp 957 precipitation_amount = 0.0_wp 958 prr = 0.0_wp 959 ! 960 !-- Initialize old and new time levels. 961 IF ( microphysics_morrison ) THEN 962 tqc_m = 0.0_wp 963 tnc_m = 0.0_wp 964 qc_p = qc 965 nc_p = nc 966 ENDIF 967 IF ( microphysics_seifert ) THEN 968 tqr_m = 0.0_wp 969 tnr_m = 0.0_wp 970 qr_p = qr 971 nr_p = nr 972 ENDIF 973 ENDIF ! Only if not read_restart_data 984 974 ! 985 975 !-- constant for the sedimentation of cloud water (2-moment cloud physics) … … 1729 1719 READ ( 13 ) ventilation_effect 1730 1720 1721 CASE ( 'na_init' ) 1722 READ ( 13 ) na_init 1723 1724 CASE ( 'dry_aerosol_radius' ) 1725 READ ( 13 ) dry_aerosol_radius 1726 1727 CASE ( 'sigma_bulk' ) 1728 READ ( 13 ) sigma_bulk 1729 1730 CASE ( 'aerosol_bulk' ) 1731 READ ( 13 ) aerosol_bulk 1732 1733 CASE ( 'curvature_solution_effects_bulk' ) 1734 READ ( 13 ) curvature_solution_effects_bulk 1735 1736 1731 1737 ! CASE ( 'global_paramter' ) 1732 1738 ! READ ( 13 ) global_parameter … … 1926 1932 CALL wrd_write_string( 'ventilation_effect' ) 1927 1933 WRITE ( 14 ) ventilation_effect 1934 1935 CALL wrd_write_string( 'na_init' ) 1936 WRITE ( 14 ) na_init 1937 1938 CALL wrd_write_string( 'dry_aerosol_radius' ) 1939 WRITE ( 14 ) dry_aerosol_radius 1940 1941 CALL wrd_write_string( 'sigma_bulk' ) 1942 WRITE ( 14 ) sigma_bulk 1943 1944 CALL wrd_write_string( 'aerosol_bulk' ) 1945 WRITE ( 14 ) aerosol_bulk 1946 1947 CALL wrd_write_string( 'curvature_solution_effects_bulk' ) 1948 WRITE ( 14 ) curvature_solution_effects_bulk 1949 1928 1950 1929 1951 ! needs preceeding allocation if array
Note: See TracChangeset
for help on using the changeset viewer.