Changeset 1353 for palm/trunk/SOURCE/init_cloud_physics.f90
- Timestamp:
- Apr 8, 2014 3:21:23 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/init_cloud_physics.f90
r1335 r1353 20 20 ! Current revisions: 21 21 ! ----------------- 22 ! 22 ! REAL constants provided with KIND-attribute 23 23 ! 24 24 ! Former revisions: … … 93 93 REAL(wp) :: t_surface !: 94 94 95 ALLOCATE( hyp(nzb:nzt+1), pt_d_t(nzb:nzt+1), t_d_pt(nzb:nzt+1), &95 ALLOCATE( hyp(nzb:nzt+1), pt_d_t(nzb:nzt+1), t_d_pt(nzb:nzt+1), & 96 96 hyrho(nzb:nzt+1) ) 97 97 … … 104 104 schmidt_p_1d3 = schmidt**( 1.0_wp / 3.0_wp ) 105 105 106 pirho_l = pi * rho_l / 6.0 107 dpirho_l = 1.0 / pirho_l106 pirho_l = pi * rho_l / 6.0_wp 107 dpirho_l = 1.0_wp / pirho_l 108 108 ! 109 109 !-- Calculate timestep according to precipitation 110 110 IF ( icloud_scheme == 0 .AND. precipitation ) THEN 111 dt_precipitation = c_sedimentation * MINVAL( dzu(nzb+2:nzt) ) / &111 dt_precipitation = c_sedimentation * MINVAL( dzu(nzb+2:nzt) ) / & 112 112 w_precipitation 113 113 ENDIF 114 114 ! 115 115 !-- Calculate factor used in equation for droplet growth by condensation 116 bfactor = 3.0 * vanthoff * mass_of_solute * molecular_weight_of_water&117 / ( 4.0 * pi * rho_l * molecular_weight_of_solute )116 bfactor = 3.0_wp * vanthoff * mass_of_solute * molecular_weight_of_water & 117 / ( 4.0_wp * pi * rho_l * molecular_weight_of_solute ) 118 118 ! 119 119 !-- Calculate: … … 121 121 !-- t / pt : ratio of actual and potential temperature (t_d_pt) 122 122 !-- p_0(z) : vertical profile of the hydrostatic pressure (hyp) 123 t_surface = pt_surface * ( surface_pressure / 1000.0 )**0.286_wp123 t_surface = pt_surface * ( surface_pressure / 1000.0_wp )**0.286_wp 124 124 DO k = nzb, nzt+1 125 125 ! 126 126 !-- Check temperature in case of too large domain height 127 IF ( ( t_surface - g/cp * zu(k) ) < 0.0 ) THEN127 IF ( ( t_surface - g/cp * zu(k) ) < 0.0_wp ) THEN 128 128 WRITE( message_string, * ) 'absolute temperature < 0.0 at zu(', k, & 129 129 ') = ', zu(k) 130 130 CALL message( 'init_cloud_physics', 'PA0142', 1, 2, 0, 6, 0 ) 131 131 ENDIF 132 hyp(k) = surface_pressure * 100.0 * &132 hyp(k) = surface_pressure * 100.0_wp * & 133 133 ( (t_surface - g/cp * zu(k)) / t_surface )**(1.0_wp/0.286_wp) 134 pt_d_t(k) = ( 100000.0 / hyp(k) )**0.286_wp135 t_d_pt(k) = 1.0 / pt_d_t(k)134 pt_d_t(k) = ( 100000.0_wp / hyp(k) )**0.286_wp 135 t_d_pt(k) = 1.0_wp / pt_d_t(k) 136 136 hyrho(k) = hyp(k) / ( r_d * t_d_pt(k) * pt_init(k) ) 137 137 ENDDO … … 139 139 ! 140 140 !-- Compute reference density 141 rho_surface = surface_pressure * 100.0 / ( r_d * t_surface )141 rho_surface = surface_pressure * 100.0_wp / ( r_d * t_surface ) 142 142 143 143
Note: See TracChangeset
for help on using the changeset viewer.