Changeset 9802
- Timestamp:
- 2018-06-15T11:47:25+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/trunk/src/OCE/IOM/iom.F90
r9598 r9802 80 80 MODULE PROCEDURE iom_rp0d, iom_rp1d, iom_rp2d, iom_rp3d 81 81 END INTERFACE 82 INTERFACE iom_put 83 MODULE PROCEDURE iom_p0d, iom_p1d, iom_p2d, iom_p3d 84 END INTERFACE 85 82 INTERFACE iom_put 83 MODULE PROCEDURE iom_p0d, iom_p1d, iom_p2d, iom_p3d 84 END INTERFACE iom_put 85 86 LOGICAL, PARAMETER :: ltmppatch = .TRUE. !: seb: patch before we remove periodicity 87 INTEGER :: nldi_save, nlei_save !: and close boundaries in output files 88 INTEGER :: nldj_save, nlej_save !: 89 86 90 !!---------------------------------------------------------------------- 87 91 !! NEMO/OCE 4.0 , NEMO Consortium (2018) … … 110 114 REAL(wp), ALLOCATABLE, DIMENSION(:,:) :: zt_bnds, zw_bnds 111 115 !!---------------------------------------------------------------------- 116 ! 117 ! seb: patch before we remove periodicity and close boundaries in output files 118 IF ( ltmppatch ) THEN 119 nldi_save = nldi ; nlei_save = nlei 120 nldj_save = nldj ; nlej_save = nlej 121 IF( nimpp == 1 ) nldi = 1 122 IF( nimpp + jpi - 1 == jpiglo ) nlei = jpi 123 IF( njmpp == 1 ) nldj = 1 124 IF( njmpp + jpj - 1 == jpjglo ) nlej = jpj 125 ENDIF 112 126 ! 113 127 ALLOCATE( zt_bnds(2,jpk), zw_bnds(2,jpk) ) … … 232 246 DEALLOCATE( zt_bnds, zw_bnds ) 233 247 ! 248 IF ( ltmppatch ) THEN 249 nldi = nldi_save ; nlei = nlei_save 250 nldj = nldj_save ; nlej = nlej_save 251 ENDIF 234 252 #endif 235 253 ! … … 1737 1755 #if defined key_iomput 1738 1756 !!---------------------------------------------------------------------- 1739 !! 'key_iomput' IOMinterface1757 !! 'key_iomput' XIOS interface 1740 1758 !!---------------------------------------------------------------------- 1741 1759 … … 1906 1924 !!---------------------------------------------------------------------- 1907 1925 ! 1926 ! seb: patch before we remove periodicity and close boundaries in output files 1927 IF ( ltmppatch ) THEN 1928 nldi_save = nldi ; nlei_save = nlei 1929 nldj_save = nldj ; nlej_save = nlej 1930 IF( nimpp == 1 ) nldi = 1 1931 IF( nimpp + jpi - 1 == jpiglo ) nlei = jpi 1932 IF( njmpp == 1 ) nldj = 1 1933 IF( njmpp + jpj - 1 == jpjglo ) nlej = jpj 1934 ENDIF 1935 ! 1908 1936 ni = nlei-nldi+1 1909 1937 nj = nlej-nldj+1 … … 1927 1955 ENDIF 1928 1956 ! 1957 IF ( ltmppatch ) THEN 1958 nldi = nldi_save ; nlei = nlei_save 1959 nldj = nldj_save ; nlej = nlej_save 1960 ENDIF 1961 ! 1929 1962 END SUBROUTINE set_grid 1930 1963 … … 1948 1981 REAL(wp), ALLOCATABLE, DIMENSION(:,:) :: z_rot ! Lat/lon working array for rotation of cells 1949 1982 !!---------------------------------------------------------------------- 1983 ! 1984 ! seb: patch before we remove periodicity and close boundaries in output files 1985 IF ( ltmppatch ) THEN 1986 nldi_save = nldi ; nlei_save = nlei 1987 nldj_save = nldj ; nlej_save = nlej 1988 IF( nimpp == 1 ) nldi = 1 1989 IF( nimpp + jpi - 1 == jpiglo ) nlei = jpi 1990 IF( njmpp == 1 ) nldj = 1 1991 IF( njmpp + jpj - 1 == jpjglo ) nlej = jpj 1992 ENDIF 1950 1993 ! 1951 1994 ALLOCATE( z_bnds(4,jpi,jpj,2), z_fld(jpi,jpj), z_rot(4,2) ) … … 2032 2075 DEALLOCATE( z_bnds, z_fld, z_rot ) 2033 2076 ! 2077 IF ( ltmppatch ) THEN 2078 nldi = nldi_save ; nlei = nlei_save 2079 nldj = nldj_save ; nlej = nlej_save 2080 ENDIF 2081 ! 2034 2082 END SUBROUTINE set_grid_bounds 2035 2083 … … 2047 2095 REAL(wp), DIMENSION(:), ALLOCATABLE :: zlon 2048 2096 !!---------------------------------------------------------------------- 2097 ! 2098 ! seb: patch before we remove periodicity and close boundaries in output files 2099 IF ( ltmppatch ) THEN 2100 nldi_save = nldi ; nlei_save = nlei 2101 nldj_save = nldj ; nlej_save = nlej 2102 IF( nimpp == 1 ) nldi = 1 2103 IF( nimpp + jpi - 1 == jpiglo ) nlei = jpi 2104 IF( njmpp == 1 ) nldj = 1 2105 IF( njmpp + jpj - 1 == jpjglo ) nlej = jpj 2106 ENDIF 2049 2107 ! 2050 2108 ni=nlei-nldi+1 ! define zonal mean domain (jpj*jpk) … … 2061 2119 ! 2062 2120 CALL iom_update_file_name('ptr') 2121 ! 2122 IF ( ltmppatch ) THEN 2123 nldi = nldi_save ; nlei = nlei_save 2124 nldj = nldj_save ; nlej = nlej_save 2125 ENDIF 2063 2126 ! 2064 2127 END SUBROUTINE set_grid_znl
Note: See TracChangeset
for help on using the changeset viewer.