- Timestamp:
- Feb 2, 2018 11:51:10 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/time_integration_spinup.f90
r2758 r2782 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Bugfix and re-activation of homogeneous setting of velocity components 28 ! during spinup 29 ! 30 ! 2758 2018-01-17 12:55:21Z suehring 27 31 ! Comment out homogeneous setting of wind velocity as this will lead to zero 28 32 ! friction velocity and cause problems in MOST relationships. … … 174 178 !-- otherwise. The precise reason is still unknown. A minimum velocity of 0.1 175 179 !-- m/s is used to maintain turbulent transfer at the surface. 176 ! u = SIGN(1.0_wp,u) * MAX(ug_surface,0.1_wp) 177 ! v = SIGN(1.0_wp,v) * MAX(vg_surface,0.1_wp) 180 IF ( land_surface ) THEN 181 DO m = 1, surf_lsm_h%ns 182 i = surf_lsm_h%i(m) 183 j = surf_lsm_h%j(m) 184 k = surf_lsm_h%k(m) 185 u(k,j,i) = SIGN(1.0_wp,u(k,j,i)) * MAX(ug_surface,0.1_wp) 186 v(k,j,i) = SIGN(1.0_wp,v(k,j,i)) * MAX(vg_surface,0.1_wp) 187 ENDDO 188 189 DO l = 0, 3 190 DO m = 1, surf_lsm_v(l)%ns 191 i = surf_lsm_v(l)%i(m) 192 j = surf_lsm_v(l)%j(m) 193 k = surf_lsm_v(l)%k(m) 194 u(k,j,i) = SIGN(1.0_wp,u(k,j,i)) * MAX(ug_surface,0.1_wp) 195 v(k,j,i) = SIGN(1.0_wp,v(k,j,i)) * MAX(vg_surface,0.1_wp) 196 ENDDO 197 ENDDO 198 ENDIF 199 200 IF ( urban_surface ) THEN 201 DO m = 1, surf_usm_h%ns 202 i = surf_usm_h%i(m) 203 j = surf_usm_h%j(m) 204 k = surf_usm_h%k(m) 205 u(k,j,i) = SIGN(1.0_wp,u(k,j,i)) * MAX(ug_surface,0.1_wp) 206 v(k,j,i) = SIGN(1.0_wp,v(k,j,i)) * MAX(vg_surface,0.1_wp) 207 ENDDO 208 209 DO l = 0, 3 210 DO m = 1, surf_usm_v(l)%ns 211 i = surf_usm_v(l)%i(m) 212 j = surf_usm_v(l)%j(m) 213 k = surf_usm_v(l)%k(m) 214 u(k,j,i) = SIGN(1.0_wp,u(k,j,i)) * MAX(ug_surface,0.1_wp) 215 v(k,j,i) = SIGN(1.0_wp,v(k,j,i)) * MAX(vg_surface,0.1_wp) 216 ENDDO 217 ENDDO 218 ENDIF 178 219 179 220 dt_save = dt_3d
Note: See TracChangeset
for help on using the changeset viewer.