- Timestamp:
- Jun 13, 2017 11:34:50 AM (7 years ago)
- Location:
- palm/trunk/SOURCE
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/pmc_interface_mod.f90
r2258 r2281 5671 5671 !-- For simplicity anterpolate within buildings and under elevated 5672 5672 !-- terrain too 5673 DO kk = kcb, kct 5673 DO kk = kcb, kct-1 5674 5674 ! 5675 5675 !-- ijfc and kfc are precomputed in pmci_init_anterp_tophat … … 5690 5690 5691 5691 ENDDO 5692 fc(kct,jj,ii) = fc(kct,jj,ii) 5693 5692 5694 ENDDO 5693 5695 ENDDO -
palm/trunk/SOURCE/surface_layer_fluxes_mod.f90
r2233 r2281 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Clean-up unnecessary index access to surface type 28 ! 29 ! 2233 2017-05-30 18:08:54Z suehring 27 30 ! 28 31 ! 2232 2017-05-30 17:47:52Z suehring … … 1200 1203 i = surf%i(m) 1201 1204 j = surf%j(m) 1202 k = surf%k(m)1203 1205 1204 1206 z_mo = surf%z_mo(m) … … 1319 1321 ELSEIF ( TRIM( most_method ) == 'lookup' ) THEN 1320 1322 1321 !$OMP PARALLEL DO PRIVATE( i, j, k,z_mo, li ) FIRSTPRIVATE( li_bnd ) LASTPRIVATE( li_bnd )1323 !$OMP PARALLEL DO PRIVATE( i, j, z_mo, li ) FIRSTPRIVATE( li_bnd ) LASTPRIVATE( li_bnd ) 1322 1324 DO m = 1, surf%ns 1323 1325 1324 1326 i = surf%i(m) 1325 1327 j = surf%j(m) 1326 k = surf%k(m)1327 1328 ! 1328 1329 !-- If the bulk Richardson number is outside the range of the lookup … … 1461 1462 !-- Compute u* at upward-facing surfaces 1462 1463 IF ( .NOT. downward ) THEN 1463 !$OMP PARALLEL DO PRIVATE( k,z_mo )1464 !$OMP PARALLEL DO PRIVATE( z_mo ) 1464 1465 DO m = 1, surf%ns 1465 1466 1466 k = surf%k(m)1467 1467 z_mo = surf%z_mo(m) 1468 1468 ! … … 1478 1478 !-- any stability. 1479 1479 ELSE 1480 !$OMP PARALLEL DO PRIVATE( k,z_mo )1480 !$OMP PARALLEL DO PRIVATE( z_mo ) 1481 1481 DO m = 1, surf%ns 1482 1482 1483 k = surf%k(m)1484 1483 z_mo = surf%z_mo(m) 1485 1484 ! … … 1611 1610 !-- land-surface model, in order to compute aerodynamical resistance. 1612 1611 IF ( surf_vertical ) THEN 1613 !$OMP PARALLEL DO PRIVATE( i, j , k)1612 !$OMP PARALLEL DO PRIVATE( i, j ) 1614 1613 DO m = 1, surf%ns 1615 1614 1616 1615 i = surf%i(m) 1617 1616 j = surf%j(m) 1618 k = surf%k(m)1619 1617 surf%ts(m) = -surf%shf(m) / ( surf%us(m) + 1E-30_wp ) 1620 1618 ! … … 1713 1711 !-- Compute q* at vertical surfaces 1714 1712 IF ( surf_vertical ) THEN 1715 !$OMP PARALLEL DO PRIVATE( i, j , k)1713 !$OMP PARALLEL DO PRIVATE( i, j ) 1716 1714 DO m = 1, surf%ns 1717 1715 1718 1716 i = surf%i(m) 1719 1717 j = surf%j(m) 1720 k = surf%k(m)1721 1718 surf%qs(m) = -surf%qsws(m) / ( surf%us(m) + 1E-30_wp ) 1722 1719 … … 1733 1730 ! 1734 1731 !-- For a given scalar flux in the surface layer 1735 !$OMP PARALLEL DO PRIVATE( i, j , k)1732 !$OMP PARALLEL DO PRIVATE( i, j ) 1736 1733 DO m = 1, surf%ns 1737 1734 i = surf%i(m) 1738 1735 j = surf%j(m) 1739 k = surf%k(m)1740 1736 surf%ss(m) = -surf%ssws(m) / ( surf%us(m) + 1E-30_wp ) 1741 1737 ENDDO … … 1744 1740 !-- At vertical surfaces 1745 1741 IF ( surf_vertical ) THEN 1746 !$OMP PARALLEL DO PRIVATE( i, j , k)1742 !$OMP PARALLEL DO PRIVATE( i, j ) 1747 1743 DO m = 1, surf%ns 1748 1744 i = surf%i(m) 1749 1745 j = surf%j(m) 1750 k = surf%k(m)1751 1746 surf%ss(m) = -surf%ssws(m) / ( surf%us(m) + 1E-30_wp ) 1752 1747 ENDDO … … 1924 1919 IF ( .NOT. constant_scalarflux .AND. passive_scalar .AND. & 1925 1920 .NOT. downward ) THEN 1926 !$OMP PARALLEL DO PRIVATE( i, j , k)1921 !$OMP PARALLEL DO PRIVATE( i, j ) 1927 1922 DO m = 1, surf%ns 1928 1923 1929 1924 i = surf%i(m) 1930 1925 j = surf%j(m) 1931 k = surf%k(m)1932 1926 surf%ssws(m) = -surf%ss(m) * surf%us(m) 1933 1927 … … 1938 1932 IF ( cloud_physics .AND. microphysics_seifert .AND. & 1939 1933 .NOT. downward) THEN 1940 !$OMP PARALLEL DO PRIVATE( i, j , k)1934 !$OMP PARALLEL DO PRIVATE( i, j ) 1941 1935 DO m = 1, surf%ns 1942 1936 1943 1937 i = surf%i(m) 1944 1938 j = surf%j(m) 1945 k = surf%k(m)1946 1939 1947 1940 surf%qrsws(m) = -surf%qrs(m) * surf%us(m) … … 2050 2043 ENDIF 2051 2044 2052 !$OMP PARALLEL DO PRIVATE( i, j, k,dum, z_mo )2045 !$OMP PARALLEL DO PRIVATE( i, j, dum, z_mo ) 2053 2046 DO m = 1, surf%ns 2054 2047 i = surf%i(m) 2055 2048 j = surf%j(m) 2056 k = surf%k(m)2057 2049 2058 2050 z_mo = surf%z_mo(m)
Note: See TracChangeset
for help on using the changeset viewer.