Changeset 4671 for palm/trunk/SOURCE/diffusion_u.f90
- Timestamp:
- Sep 9, 2020 8:27:58 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/diffusion_u.f90
r4583 r4671 19 19 ! Current revisions: 20 20 ! ----------------- 21 ! 22 ! 21 ! 22 ! 23 23 ! Former revisions: 24 24 ! ----------------- 25 25 ! $Id$ 26 ! Implementation of downward facing USM and LSM surfaces 27 ! 28 ! 4583 2020-06-29 12:36:47Z raasch 26 29 ! file re-formatted to follow the PALM coding standard 27 30 ! … … 247 250 ! 248 251 !-- Natural-type surfaces, upward-facing 249 surf_s = surf_lsm_h%start_index(j,i) 250 surf_e = surf_lsm_h%end_index(j,i) 251 DO m = surf_s, surf_e 252 253 k = surf_lsm_h%k(m) 254 255 tend(k,j,i) = tend(k,j,i) & 256 + ( - ( - surf_lsm_h%usws(m) ) ) * ddzw(k) * drho_air(k) 252 surf_s = surf_lsm_h(0)%start_index(j,i) 253 surf_e = surf_lsm_h(0)%end_index(j,i) 254 DO m = surf_s, surf_e 255 256 k = surf_lsm_h(0)%k(m) 257 258 tend(k,j,i) = tend(k,j,i) & 259 + ( - ( - surf_lsm_h(0)%usws(m) ) ) * ddzw(k) * drho_air(k) 260 ENDDO 261 ! 262 !-- Natural-type surfaces, downward-facing 263 surf_s = surf_lsm_h(1)%start_index(j,i) 264 surf_e = surf_lsm_h(1)%end_index(j,i) 265 DO m = surf_s, surf_e 266 267 k = surf_lsm_h(1)%k(m) 268 269 tend(k,j,i) = tend(k,j,i) & 270 + ( - surf_lsm_h(1)%usws(m) ) * ddzw(k) * drho_air(k) 257 271 ENDDO 258 272 ! 259 273 !-- Urban-type surfaces, upward-facing 260 surf_s = surf_usm_h%start_index(j,i) 261 surf_e = surf_usm_h%end_index(j,i) 262 DO m = surf_s, surf_e 263 264 k = surf_usm_h%k(m) 265 266 tend(k,j,i) = tend(k,j,i) & 267 + ( - ( - surf_usm_h%usws(m) ) ) * ddzw(k) * drho_air(k) 274 surf_s = surf_usm_h(0)%start_index(j,i) 275 surf_e = surf_usm_h(0)%end_index(j,i) 276 DO m = surf_s, surf_e 277 278 k = surf_usm_h(0)%k(m) 279 280 tend(k,j,i) = tend(k,j,i) & 281 + ( - ( - surf_usm_h(0)%usws(m) ) ) * ddzw(k) * drho_air(k) 282 ENDDO 283 ! 284 !-- Urban-type surfaces, downward-facing 285 surf_s = surf_usm_h(1)%start_index(j,i) 286 surf_e = surf_usm_h(1)%end_index(j,i) 287 DO m = surf_s, surf_e 288 289 k = surf_usm_h(1)%k(m) 290 291 tend(k,j,i) = tend(k,j,i) & 292 + ( - surf_usm_h(1)%usws(m) ) * ddzw(k) * drho_air(k) 268 293 ENDDO 269 294 … … 452 477 ! 453 478 !-- Natural-type surfaces, upward-facing 454 surf_s = surf_lsm_h%start_index(j,i) 455 surf_e = surf_lsm_h%end_index(j,i) 456 DO m = surf_s, surf_e 457 458 k = surf_lsm_h%k(m) 459 460 tend(k,j,i) = tend(k,j,i) + ( - ( - surf_lsm_h%usws(m) ) ) * ddzw(k) * drho_air(k) 479 surf_s = surf_lsm_h(0)%start_index(j,i) 480 surf_e = surf_lsm_h(0)%end_index(j,i) 481 DO m = surf_s, surf_e 482 483 k = surf_lsm_h(0)%k(m) 484 485 tend(k,j,i) = tend(k,j,i) + ( - ( - surf_lsm_h(0)%usws(m) ) ) * ddzw(k) * drho_air(k) 486 ENDDO 487 ! 488 !-- Natural-type surfaces, downward-facing 489 surf_s = surf_lsm_h(1)%start_index(j,i) 490 surf_e = surf_lsm_h(1)%end_index(j,i) 491 DO m = surf_s, surf_e 492 493 k = surf_lsm_h(1)%k(m) 494 495 tend(k,j,i) = tend(k,j,i) + ( - surf_lsm_h(1)%usws(m) ) * ddzw(k) * drho_air(k) 461 496 ENDDO 462 497 ! 463 498 !-- Urban-type surfaces, upward-facing 464 surf_s = surf_usm_h%start_index(j,i) 465 surf_e = surf_usm_h%end_index(j,i) 466 DO m = surf_s, surf_e 467 468 k = surf_usm_h%k(m) 469 470 tend(k,j,i) = tend(k,j,i) + ( - ( - surf_usm_h%usws(m) ) ) * ddzw(k) * drho_air(k) 499 surf_s = surf_usm_h(0)%start_index(j,i) 500 surf_e = surf_usm_h(0)%end_index(j,i) 501 DO m = surf_s, surf_e 502 503 k = surf_usm_h(0)%k(m) 504 505 tend(k,j,i) = tend(k,j,i) + ( - ( - surf_usm_h(0)%usws(m) ) ) * ddzw(k) * drho_air(k) 506 ENDDO 507 ! 508 !-- Urban-type surfaces, downward-facing 509 surf_s = surf_usm_h(1)%start_index(j,i) 510 surf_e = surf_usm_h(1)%end_index(j,i) 511 DO m = surf_s, surf_e 512 513 k = surf_usm_h(1)%k(m) 514 515 tend(k,j,i) = tend(k,j,i) + ( - surf_usm_h(1)%usws(m) ) * ddzw(k) * drho_air(k) 471 516 ENDDO 472 517
Note: See TracChangeset
for help on using the changeset viewer.