Changeset 2232 for palm/trunk/SOURCE/nudging_mod.f90
- Timestamp:
- May 30, 2017 5:47:52 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/nudging_mod.f90
r2101 r2232 20 20 ! Current revisions: 21 21 ! ------------------ 22 ! 22 ! Adjustments to new topography concept 23 23 ! 24 24 ! Former revisions: … … 332 332 333 333 USE indices, & 334 ONLY: nxl, nxr, nys, nyn, nzb, nz b_u_inner, nzt334 ONLY: nxl, nxr, nys, nyn, nzb, nzt, wall_flags_0 335 335 336 336 USE kinds … … 372 372 DO j = nys, nyn 373 373 374 DO k = nzb _u_inner(j,i)+1, nzt374 DO k = nzb+1, nzt 375 375 376 376 tmp_tend = - ( hom(k,1,1,0) - ( unudge(k,nt) * dtp + & 377 377 unudge(k,nt+1) * dtm ) ) / tmp_tnudge(k) 378 378 379 tend(k,j,i) = tend(k,j,i) + tmp_tend 379 tend(k,j,i) = tend(k,j,i) + tmp_tend * & 380 MERGE( 1.0_wp, 0.0_wp, & 381 BTEST( wall_flags_0(k,j,i), 1 ) ) 380 382 381 383 sums_ls_l(k,6) = sums_ls_l(k,6) + tmp_tend * & … … 393 395 DO j = nys, nyn 394 396 395 DO k = nzb _u_inner(j,i)+1, nzt397 DO k = nzb+1, nzt 396 398 397 399 tmp_tend = - ( hom(k,1,2,0) - ( vnudge(k,nt) * dtp + & 398 400 vnudge(k,nt+1) * dtm ) ) / tmp_tnudge(k) 399 401 400 tend(k,j,i) = tend(k,j,i) + tmp_tend 402 tend(k,j,i) = tend(k,j,i) + tmp_tend * & 403 MERGE( 1.0_wp, 0.0_wp, & 404 BTEST( wall_flags_0(k,j,i), 2 ) ) 401 405 402 406 sums_ls_l(k,7) = sums_ls_l(k,7) + tmp_tend * & … … 414 418 DO j = nys, nyn 415 419 416 DO k = nzb _u_inner(j,i)+1, nzt420 DO k = nzb+1, nzt 417 421 418 422 tmp_tend = - ( hom(k,1,4,0) - ( ptnudge(k,nt) * dtp + & 419 423 ptnudge(k,nt+1) * dtm ) ) / tmp_tnudge(k) 420 424 421 tend(k,j,i) = tend(k,j,i) + tmp_tend 425 tend(k,j,i) = tend(k,j,i) + tmp_tend * & 426 MERGE( 1.0_wp, 0.0_wp, & 427 BTEST( wall_flags_0(k,j,i), 0 ) ) 422 428 423 429 sums_ls_l(k,4) = sums_ls_l(k,4) + tmp_tend * & … … 435 441 DO j = nys, nyn 436 442 437 DO k = nzb _u_inner(j,i)+1, nzt443 DO k = nzb+1, nzt 438 444 439 445 tmp_tend = - ( hom(k,1,41,0) - ( qnudge(k,nt) * dtp + & 440 446 qnudge(k,nt+1) * dtm ) ) / tmp_tnudge(k) 441 447 442 tend(k,j,i) = tend(k,j,i) + tmp_tend 448 tend(k,j,i) = tend(k,j,i) + tmp_tend * & 449 MERGE( 1.0_wp, 0.0_wp, & 450 BTEST( wall_flags_0(k,j,i), 0 ) ) 443 451 444 452 sums_ls_l(k,5) = sums_ls_l(k,5) + tmp_tend * & … … 476 484 477 485 USE indices, & 478 ONLY: nxl, nxr, nys, nyn, nzb, nz b_u_inner, nzt486 ONLY: nxl, nxr, nys, nyn, nzb, nzt, wall_flags_0 479 487 480 488 USE kinds … … 514 522 CASE ( 'u' ) 515 523 516 DO k = nzb _u_inner(j,i)+1, nzt524 DO k = nzb+1, nzt 517 525 518 526 tmp_tend = - ( hom(k,1,1,0) - ( unudge(k,nt) * dtp + & 519 527 unudge(k,nt+1) * dtm ) ) / tmp_tnudge(k) 520 528 521 tend(k,j,i) = tend(k,j,i) + tmp_tend 529 tend(k,j,i) = tend(k,j,i) + tmp_tend * & 530 MERGE( 1.0_wp, 0.0_wp, & 531 BTEST( wall_flags_0(k,j,i), 1 ) ) 522 532 523 533 sums_ls_l(k,6) = sums_ls_l(k,6) + tmp_tend & … … 529 539 CASE ( 'v' ) 530 540 531 DO k = nzb _u_inner(j,i)+1, nzt541 DO k = nzb+1, nzt 532 542 533 543 tmp_tend = - ( hom(k,1,2,0) - ( vnudge(k,nt) * dtp + & 534 544 vnudge(k,nt+1) * dtm ) ) / tmp_tnudge(k) 535 545 536 tend(k,j,i) = tend(k,j,i) + tmp_tend 546 tend(k,j,i) = tend(k,j,i) + tmp_tend * & 547 MERGE( 1.0_wp, 0.0_wp, & 548 BTEST( wall_flags_0(k,j,i), 2 ) ) 537 549 538 550 sums_ls_l(k,7) = sums_ls_l(k,7) + tmp_tend & … … 544 556 CASE ( 'pt' ) 545 557 546 DO k = nzb _u_inner(j,i)+1, nzt558 DO k = nzb+1, nzt 547 559 548 560 tmp_tend = - ( hom(k,1,4,0) - ( ptnudge(k,nt) * dtp + & 549 561 ptnudge(k,nt+1) * dtm ) ) / tmp_tnudge(k) 550 562 551 tend(k,j,i) = tend(k,j,i) + tmp_tend 563 tend(k,j,i) = tend(k,j,i) + tmp_tend * & 564 MERGE( 1.0_wp, 0.0_wp, & 565 BTEST( wall_flags_0(k,j,i), 0 ) ) 552 566 553 567 sums_ls_l(k,4) = sums_ls_l(k,4) + tmp_tend & … … 560 574 CASE ( 'q' ) 561 575 562 DO k = nzb _u_inner(j,i)+1, nzt576 DO k = nzb+1, nzt 563 577 564 578 tmp_tend = - ( hom(k,1,41,0) - ( qnudge(k,nt) * dtp + & 565 579 qnudge(k,nt+1) * dtm ) ) / tmp_tnudge(k) 566 580 567 tend(k,j,i) = tend(k,j,i) + tmp_tend 581 tend(k,j,i) = tend(k,j,i) + tmp_tend * & 582 MERGE( 1.0_wp, 0.0_wp, & 583 BTEST( wall_flags_0(k,j,i), 0 ) ) 568 584 569 585 sums_ls_l(k,5) = sums_ls_l(k,5) + tmp_tend &
Note: See TracChangeset
for help on using the changeset viewer.