Changeset 4346 for palm/trunk/SOURCE/prognostic_equations.f90
- Timestamp:
- Dec 18, 2019 11:55:56 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/prognostic_equations.f90
r4329 r4346 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Introduction of wall_flags_total_0, which currently sets bits based on static 28 ! topography information used in wall_flags_static_0 29 ! 30 ! 4329 2019-12-10 15:46:36Z motisi 27 31 ! Renamed wall_flags_0 to wall_flags_static_0 28 32 ! … … 206 210 ONLY: advc_flags_s, & 207 211 nbgp, nxl, nxlg, nxlu, nxr, nxrg, nyn, nyng, nys, nysg, nysv, & 208 nzb, nzt, wall_flags_ static_0212 nzb, nzt, wall_flags_total_0 209 213 210 214 USE kinds … … 376 380 * ( u(k,j,i) - u_init(k) ) & 377 381 ) * MERGE( 1.0_wp, 0.0_wp, & 378 BTEST( wall_flags_static_0(k,j,i), 1 )&382 BTEST( wall_flags_total_0(k,j,i), 1 )& 379 383 ) 380 384 ENDDO … … 454 458 * ( v(k,j,i) - v_init(k) )& 455 459 ) * MERGE( 1.0_wp, 0.0_wp, & 456 BTEST( wall_flags_static_0(k,j,i), 2 )&460 BTEST( wall_flags_total_0(k,j,i), 2 )& 457 461 ) 458 462 ENDDO … … 528 532 - tsc(5) * rdf(k) * w(k,j,i) & 529 533 ) * MERGE( 1.0_wp, 0.0_wp, & 530 BTEST( wall_flags_static_0(k,j,i), 3 )&534 BTEST( wall_flags_total_0(k,j,i), 3 )& 531 535 ) 532 536 ENDDO … … 626 630 ) & 627 631 * MERGE( 1.0_wp, 0.0_wp, & 628 BTEST( wall_flags_static_0(k,j,i), 0 )&632 BTEST( wall_flags_total_0(k,j,i), 0 )& 629 633 ) 630 634 ENDDO … … 716 720 ) & 717 721 * MERGE( 1.0_wp, 0.0_wp, & 718 BTEST( wall_flags_static_0(k,j,i), 0 )&722 BTEST( wall_flags_total_0(k,j,i), 0 )& 719 723 ) 720 724 IF ( q_p(k,j,i) < 0.0_wp ) q_p(k,j,i) = 0.1_wp * q(k,j,i) … … 814 818 ) & 815 819 * MERGE( 1.0_wp, 0.0_wp, & 816 BTEST( wall_flags_static_0(k,j,i), 0 )&820 BTEST( wall_flags_total_0(k,j,i), 0 )& 817 821 ) 818 822 IF ( s_p(k,j,i) < 0.0_wp ) s_p(k,j,i) = 0.1_wp * s(k,j,i) … … 927 931 !-- Prognostic equation for u-velocity component 928 932 !$ACC PARALLEL LOOP COLLAPSE(3) PRIVATE(i, j, k) & 929 !$ACC PRESENT(u, tend, tu_m, u_init, rdf, wall_flags_ static_0) &933 !$ACC PRESENT(u, tend, tu_m, u_init, rdf, wall_flags_total_0) & 930 934 !$ACC PRESENT(tsc(2:5)) & 931 935 !$ACC PRESENT(u_p) … … 938 942 ( u(k,j,i) - u_init(k) ) & 939 943 ) * MERGE( 1.0_wp, 0.0_wp, & 940 BTEST( wall_flags_static_0(k,j,i), 1 ) &944 BTEST( wall_flags_total_0(k,j,i), 1 ) & 941 945 ) 942 946 ENDDO … … 1030 1034 !-- Prognostic equation for v-velocity component 1031 1035 !$ACC PARALLEL LOOP COLLAPSE(3) PRIVATE(i, j, k) & 1032 !$ACC PRESENT(v, tend, tv_m, v_init, rdf, wall_flags_ static_0) &1036 !$ACC PRESENT(v, tend, tv_m, v_init, rdf, wall_flags_total_0) & 1033 1037 !$ACC PRESENT(tsc(2:5)) & 1034 1038 !$ACC PRESENT(v_p) … … 1041 1045 ( v(k,j,i) - v_init(k) ) & 1042 1046 ) * MERGE( 1.0_wp, 0.0_wp, & 1043 BTEST( wall_flags_static_0(k,j,i), 2 )&1047 BTEST( wall_flags_total_0(k,j,i), 2 )& 1044 1048 ) 1045 1049 ENDDO … … 1129 1133 !-- Prognostic equation for w-velocity component 1130 1134 !$ACC PARALLEL LOOP COLLAPSE(3) PRIVATE(i, j, k) & 1131 !$ACC PRESENT(w, tend, tw_m, v_init, rdf, wall_flags_ static_0) &1135 !$ACC PRESENT(w, tend, tw_m, v_init, rdf, wall_flags_total_0) & 1132 1136 !$ACC PRESENT(tsc(2:5)) & 1133 1137 !$ACC PRESENT(w_p) … … 1139 1143 - tsc(5) * rdf(k) * w(k,j,i) & 1140 1144 ) * MERGE( 1.0_wp, 0.0_wp, & 1141 BTEST( wall_flags_static_0(k,j,i), 3 )&1145 BTEST( wall_flags_total_0(k,j,i), 3 )& 1142 1146 ) 1143 1147 ENDDO … … 1267 1271 !-- Prognostic equation for potential temperature 1268 1272 !$ACC PARALLEL LOOP COLLAPSE(3) PRIVATE(i, j, k) & 1269 !$ACC PRESENT(pt, tend, tpt_m, wall_flags_ static_0) &1273 !$ACC PRESENT(pt, tend, tpt_m, wall_flags_total_0) & 1270 1274 !$ACC PRESENT(pt_init, rdf_sc, ptdf_x, ptdf_y) & 1271 1275 !$ACC PRESENT(tsc(3:5)) & … … 1281 1285 ) & 1282 1286 * MERGE( 1.0_wp, 0.0_wp, & 1283 BTEST( wall_flags_static_0(k,j,i), 0 ) &1287 BTEST( wall_flags_total_0(k,j,i), 0 ) & 1284 1288 ) 1285 1289 ENDDO … … 1402 1406 ( q(k,j,i) - q_init(k) ) & 1403 1407 ) * MERGE( 1.0_wp, 0.0_wp, & 1404 BTEST( wall_flags_static_0(k,j,i), 0 ) &1408 BTEST( wall_flags_total_0(k,j,i), 0 ) & 1405 1409 ) 1406 1410 IF ( q_p(k,j,i) < 0.0_wp ) q_p(k,j,i) = 0.1_wp * q(k,j,i) … … 1523 1527 ) & 1524 1528 * MERGE( 1.0_wp, 0.0_wp, & 1525 BTEST( wall_flags_static_0(k,j,i), 0 ) &1529 BTEST( wall_flags_total_0(k,j,i), 0 ) & 1526 1530 ) 1527 1531 IF ( s_p(k,j,i) < 0.0_wp ) s_p(k,j,i) = 0.1_wp * s(k,j,i)
Note: See TracChangeset
for help on using the changeset viewer.