Changeset 5044
- Timestamp:
- 2015-01-26T15:48:14+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2015/dev_r4826_NOC_WAD/NEMOGCM/NEMO/OPA_SRC/DOM/domzgr.F90
r5014 r5044 1564 1564 DO jj = 1, jpj 1565 1565 1566 IF( hbatt(ji,jj) > 0._wp) THEN1566 IF( bathy(ji,jj) > 0._wp) THEN 1567 1567 DO jk = 1, mbathy(ji,jj) 1568 1568 ! check coordinate is monotonically increasing … … 1628 1628 INTEGER :: ji, jj, jk ! dummy loop argument 1629 1629 REAL(wp) :: zcoeft, zcoefw ! temporary scalars 1630 REAL(wp) :: ztmpu, ztmpv, ztmpf 1630 REAL(wp) :: ztmpu, ztmpv, ztmpf 1631 REAL(wp) :: ztmpu1, ztmpv1, ztmpf1 1631 1632 ! 1632 1633 REAL(wp), POINTER, DIMENSION(:,:,:) :: z_gsigw3, z_gsigt3, z_gsi3w3 … … 1686 1687 ztmpv = hbatt(ji,jj)+hbatt(ji,jj+1) 1687 1688 ztmpf = hbatt(ji,jj)+hbatt(ji+1,jj)+hbatt(ji,jj+1)+hbatt(ji+1,jj+1) 1689 ztmpu1 = hbatt(ji,jj)*hbatt(ji+1,jj) 1690 ztmpv1 = hbatt(ji,jj)*hbatt(ji,jj+1) 1691 ztmpf1 = MIN(hbatt(ji,jj), hbatt(ji+1,jj), hbatt(ji,jj+1), hbatt(ji+1,jj+1)) * & 1692 & MAX(hbatt(ji,jj), hbatt(ji+1,jj), hbatt(ji,jj+1), hbatt(ji+1,jj+1)) 1688 1693 DO jk = 1, jpk 1689 IF( ABS(ztmpu) < rn_wdmin1.AND.ln_wd) THEN1694 IF((ztmpu1 < 0._wp.OR.ABS(ztmpu) < rn_wdmin1).AND.ln_wd) THEN 1690 1695 z_esigtu3(ji,jj,jk) = 0.5_wp * ( z_esigt3(ji,jj,jk) + z_esigt3(ji+1,jj,jk) ) 1691 1696 z_esigwu3(ji,jj,jk) = 0.5_wp * ( z_esigw3(ji,jj,jk) + z_esigw3(ji+1,jj,jk) ) … … 1697 1702 END IF 1698 1703 1699 IF( ABS(ztmpv) < rn_wdmin1.AND.ln_wd) THEN1704 IF((ztmpv1 < 0._wp.OR.ABS(ztmpv) < rn_wdmin1).AND.ln_wd) THEN 1700 1705 z_esigtv3(ji,jj,jk) = 0.5_wp * ( z_esigt3(ji,jj,jk) + z_esigt3(ji,jj+1,jk) ) 1701 1706 z_esigwv3(ji,jj,jk) = 0.5_wp * ( z_esigw3(ji,jj,jk) + z_esigw3(ji,jj+1,jk) ) … … 1707 1712 END IF 1708 1713 1709 IF( ABS(ztmpf) < rn_wdmin1.AND.ln_wd) THEN1714 IF((ztmpf1 < 0._wp.OR.ABS(ztmpf) < rn_wdmin1).AND.ln_wd) THEN 1710 1715 z_esigtf3(ji,jj,jk) = 0.25_wp * ( z_esigt3(ji,jj,jk) + z_esigt3(ji+1,jj,jk) & 1711 1716 & + z_esigt3(ji,jj+1,jk) + z_esigt3(ji+1,jj+1,jk) ) … … 1768 1773 REAL(wp) :: zzs, zzb ! Surface and bottom cell thickness in sigma space 1769 1774 REAL(wp) :: ztmpu, ztmpv, ztmpf 1775 REAL(wp) :: ztmpu1, ztmpv1, ztmpf1 1770 1776 ! 1771 1777 REAL(wp), POINTER, DIMENSION(:,:,:) :: z_gsigw3, z_gsigt3, z_gsi3w3 … … 1850 1856 ztmpv = hbatt(ji,jj)+hbatt(ji,jj+1) 1851 1857 ztmpf = hbatt(ji,jj)+hbatt(ji+1,jj)+hbatt(ji,jj+1)+hbatt(ji+1,jj+1) 1858 ztmpu1 = hbatt(ji,jj)*hbatt(ji+1,jj) 1859 ztmpv1 = hbatt(ji,jj)*hbatt(ji,jj+1) 1860 ztmpf1 = MIN(hbatt(ji,jj), hbatt(ji+1,jj), hbatt(ji,jj+1), hbatt(ji+1,jj+1)) * & 1861 & MAX(hbatt(ji,jj), hbatt(ji+1,jj), hbatt(ji,jj+1), hbatt(ji+1,jj+1)) 1852 1862 DO jk = 1, jpk 1853 IF( ABS(ztmpu) < 1.e-5.AND.ln_wd) THEN1863 IF((ztmpu1 < 0._wp.OR.ABS(ztmpu) < rn_wdmin1).AND.ln_wd) THEN 1854 1864 z_esigtu3(ji,jj,jk) = 0.5_wp * ( z_esigt3(ji,jj,jk) + z_esigt3(ji+1,jj,jk) ) 1855 1865 z_esigwu3(ji,jj,jk) = 0.5_wp * ( z_esigw3(ji,jj,jk) + z_esigw3(ji+1,jj,jk) ) … … 1861 1871 END IF 1862 1872 1863 IF( ABS(ztmpv) < 1.e-5.AND.ln_wd) THEN1873 IF((ztmpv1 < 0._wp.OR.ABS(ztmpv) < rn_wdmin1).AND.ln_wd) THEN 1864 1874 z_esigtv3(ji,jj,jk) = 0.5_wp * ( z_esigt3(ji,jj,jk) + z_esigt3(ji,jj+1,jk) ) 1865 1875 z_esigwv3(ji,jj,jk) = 0.5_wp * ( z_esigw3(ji,jj,jk) + z_esigw3(ji,jj+1,jk) ) … … 1871 1881 END IF 1872 1882 1873 IF( ABS(ztmpf) < 1.e-5.AND.ln_wd) THEN1883 IF((ztmpf1 < 0._wp.OR.ABS(ztmpf) < rn_wdmin1).AND.ln_wd) THEN 1874 1884 z_esigtf3(ji,jj,jk) = 0.25_wp * ( z_esigt3(ji,jj,jk) + z_esigt3(ji+1,jj,jk) & 1875 1885 & + z_esigt3(ji,jj+1,jk) + z_esigt3(ji+1,jj+1,jk) )
Note: See TracChangeset
for help on using the changeset viewer.