Changeset 4329 for palm/trunk/SOURCE/chemistry_model_mod.f90
- Timestamp:
- Dec 10, 2019 3:46:36 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/chemistry_model_mod.f90
r4306 r4329 27 27 ! ----------------- 28 28 ! $Id$ 29 ! Renamed wall_flags_0 to wall_flags_static_0 30 ! 31 ! 4306 2019-11-25 12:04:48Z banzhafs 29 32 ! Corretion for r4304 commit 30 33 ! … … 246 249 USE indices, & 247 250 ONLY: advc_flags_s, & 248 nbgp, nx, nxl, nxlg, nxr, nxrg, ny, nyn, nyng, nys, nysg, nz, nzb, nzt, wall_flags_ 0251 nbgp, nx, nxl, nxlg, nxr, nxrg, ny, nyn, nyng, nys, nysg, nz, nzb, nzt, wall_flags_static_0 249 252 250 253 USE pegrid, & … … 917 920 DO j = nysg, nyng 918 921 DO k = nzb+1, nzt 919 flag = MERGE( 1.0_wp, 0.0_wp, BTEST( wall_flags_ 0(k,j,i), 0 ) )922 flag = MERGE( 1.0_wp, 0.0_wp, BTEST( wall_flags_static_0(k,j,i), 0 ) ) 920 923 cs_3d(k,j,i) = cs_pr_init(k) * flag 921 924 ENDDO … … 942 945 DO j = nysg, nyng 943 946 DO k = nzb+1, nzt 944 flag = MERGE( 1.0_wp, 0.0_wp, BTEST( wall_flags_ 0(k,j,i), 0 ) )947 flag = MERGE( 1.0_wp, 0.0_wp, BTEST( wall_flags_static_0(k,j,i), 0 ) ) 945 948 cs_3d(k,j,i) = cs_3d(k,j,copied) * flag 946 949 ENDDO … … 979 982 DO j = ss, ee 980 983 DO k = nzb+1, nzt 981 flag = MERGE( 1.0_wp, 0.0_wp, BTEST( wall_flags_ 0(k,j,i), 0 ) )984 flag = MERGE( 1.0_wp, 0.0_wp, BTEST( wall_flags_static_0(k,j,i), 0 ) ) 982 985 cs_3d(k,j,i) = cs_pr_init(k) * flag 983 986 ENDDO … … 1005 1008 DO j = ss, ee 1006 1009 DO k = nzb+1, nzt 1007 flag = MERGE( 1.0_wp, 0.0_wp, BTEST( wall_flags_ 0(k,j,i), 0 ) )1010 flag = MERGE( 1.0_wp, 0.0_wp, BTEST( wall_flags_static_0(k,j,i), 0 ) ) 1008 1011 cs_3d(k,j,i) = cs_3d(k,copied,i) * flag 1009 1012 ENDDO … … 1328 1331 chem_species(lsp)%conc(k,j,i), & 1329 1332 REAL( fill_value, KIND = wp ), & 1330 BTEST( wall_flags_ 0(k,j,i), 0 ) )1333 BTEST( wall_flags_static_0(k,j,i), 0 ) ) 1331 1334 ENDDO 1332 1335 ENDDO … … 1340 1343 chem_species(lsp)%conc_av(k,j,i), & 1341 1344 REAL( fill_value, KIND = wp ), & 1342 BTEST( wall_flags_ 0(k,j,i), 0 ) )1345 BTEST( wall_flags_static_0(k,j,i), 0 ) ) 1343 1346 ENDDO 1344 1347 ENDDO … … 1436 1439 chem_species(lsp)%conc(k,j,i), & 1437 1440 REAL( fill_value, KIND = wp ), & 1438 BTEST( wall_flags_ 0(k,j,i), 0 ) )1441 BTEST( wall_flags_static_0(k,j,i), 0 ) ) 1439 1442 ENDDO 1440 1443 ENDDO … … 1449 1452 chem_species(lsp)%conc_av(k,j,i),& 1450 1453 REAL( fill_value, KIND = wp ), & 1451 BTEST( wall_flags_ 0(k,j,i), 0 ) )1454 BTEST( wall_flags_static_0(k,j,i), 0 ) ) 1452 1455 ENDDO 1453 1456 ENDDO … … 1529 1532 im = mask_i(mid,i) 1530 1533 jm = mask_j(mid,j) 1531 ktt = MINLOC( MERGE( 1, 0, BTEST( wall_flags_ 0(:,jm,im), 5 )), DIM = 1 ) - 11534 ktt = MINLOC( MERGE( 1, 0, BTEST( wall_flags_static_0(:,jm,im), 5 )), DIM = 1 ) - 1 1532 1535 DO k = 1, mask_size_l(mid,3) 1533 1536 kk = MIN( ktt+mask_k(mid,k), nzt+1 ) 1534 1537 !-- Set value if not in building 1535 IF ( BTEST( wall_flags_ 0(kk,jm,im), 6 ) ) THEN1538 IF ( BTEST( wall_flags_static_0(kk,jm,im), 6 ) ) THEN 1536 1539 local_pf(i,j,k) = fill_value 1537 1540 ELSE … … 1565 1568 im = mask_i(mid,i) 1566 1569 jm = mask_j(mid,j) 1567 ktt = MINLOC( MERGE( 1, 0, BTEST( wall_flags_ 0(:,jm,im), 5 )), DIM = 1 ) - 11570 ktt = MINLOC( MERGE( 1, 0, BTEST( wall_flags_static_0(:,jm,im), 5 )), DIM = 1 ) - 1 1568 1571 DO k = 1, mask_size_l(mid,3) 1569 1572 kk = MIN( ktt+mask_k(mid,k), nzt+1 ) 1570 1573 !-- Set value if not in building 1571 IF ( BTEST( wall_flags_ 0(kk,jm,im), 6 ) ) THEN1574 IF ( BTEST( wall_flags_static_0(kk,jm,im), 6 ) ) THEN 1572 1575 local_pf(i,j,k) = fill_value 1573 1576 ELSE … … 1892 1895 ALLOCATE( cs_advc_flags_s(nzb:nzt+1,nysg:nyng,nxlg:nxrg) ) 1893 1896 ! 1894 !-- In case of decyling, set Neumann boundary conditions for wall_flags_ 01897 !-- In case of decyling, set Neumann boundary conditions for wall_flags_static_0 1895 1898 !-- bit 31 instead of cyclic boundary conditions. 1896 1899 !-- Bit 31 is used to identify extended degradation zones (please see … … 1898 1901 !-- Note, since several also other modules like Salsa or other future 1899 1902 !-- one may access this bit but may have other boundary conditions, the 1900 !-- original value of wall_flags_ 0 bit 31 must not be modified. Hence,1903 !-- original value of wall_flags_static_0 bit 31 must not be modified. Hence, 1901 1904 !-- store the boundary conditions directly on cs_advc_flags_s. 1902 1905 !-- cs_advc_flags_s will be later overwritten in ws_init_flags_scalar and … … 1905 1908 cs_advc_flags_s = 0 1906 1909 cs_advc_flags_s = MERGE( IBSET( cs_advc_flags_s, 31 ), 0, & 1907 BTEST( wall_flags_ 0, 31 ) )1910 BTEST( wall_flags_static_0, 31 ) ) 1908 1911 1909 1912 IF ( decycle_chem_ns ) THEN … … 2745 2748 * ( chem_species(ilsp)%conc(k,j,i) - chem_species(ilsp)%conc_pr_init(k) ) & 2746 2749 ) & 2747 * MERGE( 1.0_wp, 0.0_wp, BTEST( wall_flags_ 0(k,j,i), 0 ) )2750 * MERGE( 1.0_wp, 0.0_wp, BTEST( wall_flags_static_0(k,j,i), 0 ) ) 2748 2751 2749 2752 IF ( chem_species(ilsp)%conc_p(k,j,i) < 0.0_wp ) THEN … … 2855 2858 ) & 2856 2859 * MERGE( 1.0_wp, 0.0_wp, & 2857 BTEST( wall_flags_ 0(k,j,i), 0 ) &2860 BTEST( wall_flags_static_0(k,j,i), 0 ) & 2858 2861 ) 2859 2862 … … 2997 3000 rmask(j,i,sr) * & 2998 3001 MERGE( 1.0_wp, 0.0_wp, & 2999 BTEST( wall_flags_ 0(k,j,i), 22 ) )3002 BTEST( wall_flags_static_0(k,j,i), 22 ) ) 3000 3003 ENDDO 3001 3004 ENDDO
Note: See TracChangeset
for help on using the changeset viewer.