Changeset 29
- Timestamp:
- Jan 24, 2000, 1:07:41 PM (25 years ago)
- Location:
- LMDZ.3.3/trunk/libf
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ.3.3/trunk/libf/bibio/writedynav.F
r2 r29 58 58 C Variables locales 59 59 C 60 integer ndex (1),iq, ii, ll60 integer ndex2d(iip1*jjp1),ndex3d(iip1*jjp1*llm),iq, ii, ll 61 61 character*3 str 62 62 real us(ip1jmp1*llm), vs(ip1jmp1*llm) … … 68 68 C 69 69 str='q ' 70 ndex(1) = 0 70 ndex3d = 0 71 ndex2d = 0 71 72 ok_sync = .TRUE. 72 73 … … 81 82 call gr_u_scal(llm, unat, us) 82 83 call histwrite(histid, 'u', time, us, 83 . iip1*jjp1*llm, ndex )84 . iip1*jjp1*llm, ndex3d) 84 85 C 85 86 C Vents V scalaire … … 87 88 call gr_v_scal(llm, vnat, vs) 88 89 call histwrite(histid, 'v', time, vs, 89 . iip1*jjp1*llm, ndex )90 . iip1*jjp1*llm, ndex3d) 90 91 C 91 92 C Temperature moyennee … … 95 96 enddo 96 97 call histwrite(histid, 'temp', time, tm, 97 . iip1*jjp1*llm, ndex )98 . iip1*jjp1*llm, ndex3d) 98 99 C 99 100 C Geopotentiel 100 101 C 101 102 call histwrite(histid, 'phi', time, phi, 102 . iip1*jjp1*llm, ndex )103 . iip1*jjp1*llm, ndex3d) 103 104 C 104 105 C Traceurs … … 112 113 ENDIF 113 114 call histwrite(histid, str, time, q(:,:,iq), 114 . iip1*jjp1*llm, ndex )115 . iip1*jjp1*llm, ndex3d) 115 116 enddo 116 117 endif … … 118 119 C Masse 119 120 C 120 call histwrite(histid, 'masse', time, masse, iip1*jjp1, ndex )121 call histwrite(histid, 'masse', time, masse, iip1*jjp1, ndex2d) 121 122 C 122 123 C Pression au sol 123 124 C 124 call histwrite(histid, 'ps', time, ps, iip1*jjp1, ndex )125 call histwrite(histid, 'ps', time, ps, iip1*jjp1, ndex2d) 125 126 C 126 127 C Geopotentiel au sol 127 128 C 128 call histwrite(histid, 'phis', time, phis, iip1*jjp1, ndex )129 call histwrite(histid, 'phis', time, phis, iip1*jjp1, ndex2d) 129 130 C 130 131 C Fin 131 132 C 132 if (ok_sync) call histsync 133 if (ok_sync) call histsync(histid) 133 134 return 134 135 end -
LMDZ.3.3/trunk/libf/bibio/writehist.F
r2 r29 59 59 C Variables locales 60 60 C 61 integer ndex(1),iq, ii, ll 61 integer iq, ii, ll 62 integer ndexu(ip1jmp1,llm),ndexv(ip1jm,llm),ndex2d(ip1jmp1) 62 63 character*3 str 63 64 logical ok_sync … … 66 67 C 67 68 str='q ' 68 ndex(1) = 0 69 ndexu = 0 70 ndexv = 0 71 ndex2d = 0 69 72 ok_sync =.TRUE. 70 73 C … … 74 77 C 75 78 call histwrite(histid, 'ucov', time, ucov, 76 . iip1*jjp1*llm, ndex )79 . iip1*jjp1*llm, ndexu) 77 80 78 81 C … … 80 83 C 81 84 call histwrite(histvid, 'vcov', time, vcov, 82 . iip1*jjm*llm, ndex )85 . iip1*jjm*llm, ndexv) 83 86 84 87 C … … 86 89 C 87 90 call histwrite(histid, 'teta', time, teta, 88 . iip1*jjp1*llm, ndex )91 . iip1*jjp1*llm, ndexu) 89 92 C 90 93 C Geopotentiel 91 94 C 92 95 call histwrite(histid, 'phi', time, phi, 93 . iip1*jjp1*llm, ndex )96 . iip1*jjp1*llm, ndexu) 94 97 C 95 98 C Traceurs … … 103 106 ENDIF 104 107 call histwrite(histid, str, time, q(:,:,iq), 105 . iip1*jjp1*llm, ndex )108 . iip1*jjp1*llm, ndexu) 106 109 enddo 107 110 endif … … 109 112 C Masse 110 113 C 111 call histwrite(histid, 'masse', time, masse, iip1*jjp1, ndex )114 call histwrite(histid, 'masse', time, masse, iip1*jjp1, ndex2d) 112 115 C 113 116 C Pression au sol 114 117 C 115 call histwrite(histid, 'ps', time, ps, iip1*jjp1, ndex )118 call histwrite(histid, 'ps', time, ps, iip1*jjp1, ndex2d) 116 119 C 117 120 C Geopotentiel au sol 118 121 C 119 call histwrite(histid, 'phis', time, phis, iip1*jjp1, ndex )122 call histwrite(histid, 'phis', time, phis, iip1*jjp1, ndex2d) 120 123 C 121 124 C Fin 122 125 C 123 if (ok_sync) call histsync 126 if (ok_sync) then 127 call histsync(histid) 128 call histsync(histvid) 129 endif 124 130 return 125 131 end -
LMDZ.3.3/trunk/libf/phylmd/physiq.F
r23 r29 506 506 REAL tabcntr0( length ) 507 507 c 508 INTEGER ndex (1)508 INTEGER ndex2d(iim*(jjm+1)),ndex3d(iim*(jjm+1)*klev) 509 509 REAL zx_tmp_fi2d(klon) 510 510 REAL zx_tmp_2d(iim,jjm+1), zx_tmp_3d(iim,jjm+1,klev) … … 810 810 CALL histend(nid_day) 811 811 c 812 ndex(1) = 0 813 c 814 i = NINT(zout/zsto) 815 CALL gr_fi_ecrit(1,klon,iim,jjm+1,pphis,zx_tmp_2d) 816 CALL histwrite(nid_day,"phis",i,zx_tmp_2d,iim*(jjm+1),ndex) 817 c 818 i = NINT(zout/zsto) 819 CALL gr_fi_ecrit(1,klon,iim,jjm+1,paire,zx_tmp_2d) 820 CALL histwrite(nid_day,"aire",i,zx_tmp_2d,iim*(jjm+1),ndex) 812 ndex2d = 0 813 ndex3d = 0 814 c 815 Cess i = NINT(zout/zsto) 816 Cess CALL gr_fi_ecrit(1,klon,iim,jjm+1,pphis,zx_tmp_2d) 817 Cess CALL histwrite(nid_day,"phis",i,zx_tmp_2d,iim*(jjm+1),ndex2d) 818 c 819 Cess i = NINT(zout/zsto) 820 Cess CALL gr_fi_ecrit(1,klon,iim,jjm+1,paire,zx_tmp_2d) 821 Cess CALL histwrite(nid_day,"aire",i,zx_tmp_2d,iim*(jjm+1),ndex2d) 821 822 c 822 823 ENDIF ! fin de test sur ok_journe … … 1157 1158 CALL histend(nid_mth) 1158 1159 c 1159 ndex(1) = 0 1160 c 1161 i = NINT(zout/zsto) 1162 CALL gr_fi_ecrit(1,klon,iim,jjm+1,pphis,zx_tmp_2d) 1163 CALL histwrite(nid_mth,"phis",i,zx_tmp_2d,iim*(jjm+1),ndex) 1160 ndex2d = 0 1161 ndex3d = 0 1162 c 1163 Cess i = NINT(zout/zsto) 1164 Cess CALL gr_fi_ecrit(1,klon,iim,jjm+1,pphis,zx_tmp_2d) 1165 Cess CALL histwrite(nid_mth,"phis",i,zx_tmp_2d,iim*(jjm+1),ndex2d) 1164 1166 C 1165 i = NINT(zout/zsto)1166 CALL gr_fi_ecrit(1,klon,iim,jjm+1,paire,zx_tmp_2d)1167 CALL histwrite(nid_mth,"aire",i,zx_tmp_2d,iim*(jjm+1),ndex)1167 Cess i = NINT(zout/zsto) 1168 Cess CALL gr_fi_ecrit(1,klon,iim,jjm+1,paire,zx_tmp_2d) 1169 Cess CALL histwrite(nid_mth,"aire",i,zx_tmp_2d,iim*(jjm+1),ndex2d) 1168 1170 c 1169 1171 ENDIF ! fin de test sur ok_mensuel … … 1238 1240 CALL histend(nid_ins) 1239 1241 c 1240 ndex(1) = 0 1241 c 1242 i = NINT(zout/zsto) 1243 CALL gr_fi_ecrit(1,klon,iim,jjm+1,pphis,zx_tmp_2d) 1244 CALL histwrite(nid_ins,"phis",i,zx_tmp_2d,iim*(jjm+1),ndex) 1245 c 1246 i = NINT(zout/zsto) 1247 CALL gr_fi_ecrit(1,klon,iim,jjm+1,paire,zx_tmp_2d) 1248 CALL histwrite(nid_ins,"aire",i,zx_tmp_2d,iim*(jjm+1),ndex) 1242 ndex2d = 0 1243 ndex3d = 0 1244 c 1245 Cess i = NINT(zout/zsto) 1246 Cess CALL gr_fi_ecrit(1,klon,iim,jjm+1,pphis,zx_tmp_2d) 1247 Cess CALL histwrite(nid_ins,"phis",i,zx_tmp_2d,iim*(jjm+1),ndex2d) 1248 c 1249 Cess i = NINT(zout/zsto) 1250 Cess CALL gr_fi_ecrit(1,klon,iim,jjm+1,paire,zx_tmp_2d) 1251 Cess CALL histwrite(nid_ins,"aire",i,zx_tmp_2d,iim*(jjm+1),ndex2d) 1249 1252 c 1250 1253 ENDIF … … 1797 1800 C la physique s'applique 1798 1801 C 1802 write(*,*) 'Phytrac= ' 1799 1803 call phytrac (rnpb, 1800 1804 I debut, … … 1808 1812 O tr_seri) 1809 1813 1814 write(*,*) 'OFFLINE= ', offline 1810 1815 IF (offline) THEN 1816 write(*,*) 'OFFLINE= ', offline 1811 1817 call phystoke ( 1812 1818 I nlon,nlev,pdtphys, … … 1845 1851 IF (ok_journe) THEN 1846 1852 c 1847 ndex(1) = 0 1853 ndex2d = 0 1854 ndex3d = 0 1848 1855 c 1849 1856 c Champs 2D: 1850 1857 c 1858 i = NINT(zout/zsto) 1859 CALL gr_fi_ecrit(1,klon,iim,jjm+1,pphis,zx_tmp_2d) 1860 CALL histwrite(nid_day,"phis",i,zx_tmp_2d,iim*(jjm+1),ndex2d) 1861 c 1862 i = NINT(zout/zsto) 1863 CALL gr_fi_ecrit(1,klon,iim,jjm+1,paire,zx_tmp_2d) 1864 CALL histwrite(nid_day,"aire",i,zx_tmp_2d,iim*(jjm+1),ndex2d) 1865 C 1851 1866 CALL gr_fi_ecrit(1, klon,iim,jjm+1, zxtsol,zx_tmp_2d) 1852 CALL histwrite(nid_day,"tsol",itap,zx_tmp_2d,iim*(jjm+1),ndex )1867 CALL histwrite(nid_day,"tsol",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 1853 1868 c 1854 1869 DO i = 1, klon … … 1856 1871 ENDDO 1857 1872 CALL gr_fi_ecrit(1, klon,iim,jjm+1, zx_tmp_fi2d,zx_tmp_2d) 1858 CALL histwrite(nid_day,"psol",itap,zx_tmp_2d,iim*(jjm+1),ndex )1873 CALL histwrite(nid_day,"psol",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 1859 1874 c 1860 1875 DO i = 1, klon … … 1862 1877 ENDDO 1863 1878 CALL gr_fi_ecrit(1, klon,iim,jjm+1, zx_tmp_fi2d,zx_tmp_2d) 1864 CALL histwrite(nid_day,"rain",itap,zx_tmp_2d,iim*(jjm+1),ndex )1879 CALL histwrite(nid_day,"rain",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 1865 1880 c 1866 1881 CALL gr_fi_ecrit(1, klon,iim,jjm+1, snow_fall,zx_tmp_2d) 1867 CALL histwrite(nid_day,"snow",itap,zx_tmp_2d,iim*(jjm+1),ndex )1882 CALL histwrite(nid_day,"snow",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 1868 1883 c 1869 1884 CALL gr_fi_ecrit(1, klon,iim,jjm+1, evap,zx_tmp_2d) 1870 CALL histwrite(nid_day,"evap",itap,zx_tmp_2d,iim*(jjm+1),ndex )1885 CALL histwrite(nid_day,"evap",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 1871 1886 c 1872 1887 CALL gr_fi_ecrit(1, klon,iim,jjm+1, topsw,zx_tmp_2d) 1873 CALL histwrite(nid_day,"tops",itap,zx_tmp_2d,iim*(jjm+1),ndex )1888 CALL histwrite(nid_day,"tops",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 1874 1889 c 1875 1890 CALL gr_fi_ecrit(1, klon,iim,jjm+1, toplw,zx_tmp_2d) 1876 CALL histwrite(nid_day,"topl",itap,zx_tmp_2d,iim*(jjm+1),ndex )1891 CALL histwrite(nid_day,"topl",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 1877 1892 c 1878 1893 CALL gr_fi_ecrit(1, klon,iim,jjm+1, solsw,zx_tmp_2d) 1879 CALL histwrite(nid_day,"sols",itap,zx_tmp_2d,iim*(jjm+1),ndex )1894 CALL histwrite(nid_day,"sols",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 1880 1895 c 1881 1896 CALL gr_fi_ecrit(1, klon,iim,jjm+1, sollw,zx_tmp_2d) 1882 CALL histwrite(nid_day,"soll",itap,zx_tmp_2d,iim*(jjm+1),ndex )1897 CALL histwrite(nid_day,"soll",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 1883 1898 c 1884 1899 CALL gr_fi_ecrit(1, klon,iim,jjm+1, bils,zx_tmp_2d) 1885 CALL histwrite(nid_day,"bils",itap,zx_tmp_2d,iim*(jjm+1),ndex )1900 CALL histwrite(nid_day,"bils",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 1886 1901 c 1887 1902 CALL gr_fi_ecrit(1, klon,iim,jjm+1, sens,zx_tmp_2d) 1888 CALL histwrite(nid_day,"sens",itap,zx_tmp_2d,iim*(jjm+1),ndex )1903 CALL histwrite(nid_day,"sens",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 1889 1904 c 1890 1905 CALL gr_fi_ecrit(1, klon,iim,jjm+1, fder,zx_tmp_2d) 1891 CALL histwrite(nid_day,"fder",itap,zx_tmp_2d,iim*(jjm+1),ndex )1906 CALL histwrite(nid_day,"fder",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 1892 1907 c 1893 1908 CALL gr_fi_ecrit(1, klon,iim,jjm+1, ruis,zx_tmp_2d) 1894 CALL histwrite(nid_day,"ruis",itap,zx_tmp_2d,iim*(jjm+1),ndex )1909 CALL histwrite(nid_day,"ruis",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 1895 1910 c 1896 1911 DO i = 1, klon … … 1898 1913 ENDDO 1899 1914 CALL gr_fi_ecrit(1, klon,iim,jjm+1, zx_tmp_fi2d,zx_tmp_2d) 1900 CALL histwrite(nid_day,"frtu",itap,zx_tmp_2d,iim*(jjm+1),ndex )1915 CALL histwrite(nid_day,"frtu",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 1901 1916 c 1902 1917 DO i = 1, klon … … 1904 1919 ENDDO 1905 1920 CALL gr_fi_ecrit(1, klon,iim,jjm+1, zx_tmp_fi2d,zx_tmp_2d) 1906 CALL histwrite(nid_day,"frtv",itap,zx_tmp_2d,iim*(jjm+1),ndex )1921 CALL histwrite(nid_day,"frtv",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 1907 1922 c 1908 1923 DO i = 1, klon … … 1910 1925 ENDDO 1911 1926 CALL gr_fi_ecrit(1, klon,iim,jjm+1, zx_tmp_fi2d,zx_tmp_2d) 1912 CALL histwrite(nid_day,"sicf",itap,zx_tmp_2d,iim*(jjm+1),ndex )1927 CALL histwrite(nid_day,"sicf",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 1913 1928 c 1914 1929 CALL gr_fi_ecrit(1, klon,iim,jjm+1, cldl,zx_tmp_2d) 1915 CALL histwrite(nid_day,"cldl",itap,zx_tmp_2d,iim*(jjm+1),ndex )1930 CALL histwrite(nid_day,"cldl",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 1916 1931 c 1917 1932 CALL gr_fi_ecrit(1, klon,iim,jjm+1, cldm,zx_tmp_2d) 1918 CALL histwrite(nid_day,"cldm",itap,zx_tmp_2d,iim*(jjm+1),ndex )1933 CALL histwrite(nid_day,"cldm",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 1919 1934 c 1920 1935 CALL gr_fi_ecrit(1, klon,iim,jjm+1, cldh,zx_tmp_2d) 1921 CALL histwrite(nid_day,"cldh",itap,zx_tmp_2d,iim*(jjm+1),ndex )1936 CALL histwrite(nid_day,"cldh",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 1922 1937 c 1923 1938 CALL gr_fi_ecrit(1, klon,iim,jjm+1, cldt,zx_tmp_2d) 1924 CALL histwrite(nid_day,"cldt",itap,zx_tmp_2d,iim*(jjm+1),ndex )1939 CALL histwrite(nid_day,"cldt",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 1925 1940 c 1926 1941 CALL gr_fi_ecrit(1, klon,iim,jjm+1, cldq,zx_tmp_2d) 1927 CALL histwrite(nid_day,"cldq",itap,zx_tmp_2d,iim*(jjm+1),ndex )1942 CALL histwrite(nid_day,"cldq",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 1928 1943 c 1929 1944 c Champs 3D: … … 1931 1946 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, t_seri, zx_tmp_3d) 1932 1947 CALL histwrite(nid_day,"temp",itap,zx_tmp_3d, 1933 . iim*(jjm+1)*klev,ndex )1948 . iim*(jjm+1)*klev,ndex3d) 1934 1949 c 1935 1950 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, qx(1,1,ivap), zx_tmp_3d) 1936 1951 CALL histwrite(nid_day,"ovap",itap,zx_tmp_3d, 1937 . iim*(jjm+1)*klev,ndex )1952 . iim*(jjm+1)*klev,ndex3d) 1938 1953 c 1939 1954 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, zphi, zx_tmp_3d) 1940 1955 CALL histwrite(nid_day,"geop",itap,zx_tmp_3d, 1941 . iim*(jjm+1)*klev,ndex )1956 . iim*(jjm+1)*klev,ndex3d) 1942 1957 c 1943 1958 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, u_seri, zx_tmp_3d) 1944 1959 CALL histwrite(nid_day,"vitu",itap,zx_tmp_3d, 1945 . iim*(jjm+1)*klev,ndex )1960 . iim*(jjm+1)*klev,ndex3d) 1946 1961 c 1947 1962 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, v_seri, zx_tmp_3d) 1948 1963 CALL histwrite(nid_day,"vitv",itap,zx_tmp_3d, 1949 . iim*(jjm+1)*klev,ndex )1964 . iim*(jjm+1)*klev,ndex3d) 1950 1965 c 1951 1966 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, omega, zx_tmp_3d) 1952 1967 CALL histwrite(nid_day,"vitw",itap,zx_tmp_3d, 1953 . iim*(jjm+1)*klev,ndex )1968 . iim*(jjm+1)*klev,ndex3d) 1954 1969 c 1955 1970 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, pplay, zx_tmp_3d) 1956 1971 CALL histwrite(nid_day,"pres",itap,zx_tmp_3d, 1957 . iim*(jjm+1)*klev,ndex) 1958 c 1959 if (ok_sync) call histsync 1972 . iim*(jjm+1)*klev,ndex3d) 1973 c 1974 if (ok_sync) then 1975 call histsync(nid_day) 1976 endif 1960 1977 ENDIF 1961 1978 C 1962 1979 IF (ok_mensuel) THEN 1963 1980 c 1964 ndex(1) = 0 1981 ndex2d = 0 1982 ndex3d = 0 1965 1983 c 1966 1984 c Champs 2D: 1967 1985 c 1986 i = NINT(zout/zsto) 1987 CALL gr_fi_ecrit(1,klon,iim,jjm+1,pphis,zx_tmp_2d) 1988 CALL histwrite(nid_mth,"phis",i,zx_tmp_2d,iim*(jjm+1),ndex2d) 1989 C 1990 i = NINT(zout/zsto) 1991 CALL gr_fi_ecrit(1,klon,iim,jjm+1,paire,zx_tmp_2d) 1992 CALL histwrite(nid_mth,"aire",i,zx_tmp_2d,iim*(jjm+1),ndex2d) 1993 1968 1994 CALL gr_fi_ecrit(1, klon,iim,jjm+1, zxtsol,zx_tmp_2d) 1969 CALL histwrite(nid_mth,"tsol",itap,zx_tmp_2d,iim*(jjm+1),ndex )1995 CALL histwrite(nid_mth,"tsol",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 1970 1996 c 1971 1997 DO i = 1, klon … … 1973 1999 ENDDO 1974 2000 CALL gr_fi_ecrit(1, klon,iim,jjm+1, zx_tmp_fi2d,zx_tmp_2d) 1975 CALL histwrite(nid_mth,"psol",itap,zx_tmp_2d,iim*(jjm+1),ndex )2001 CALL histwrite(nid_mth,"psol",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 1976 2002 c 1977 2003 CALL gr_fi_ecrit(1, klon,iim,jjm+1, zxqsol,zx_tmp_2d) 1978 CALL histwrite(nid_mth,"qsol",itap,zx_tmp_2d,iim*(jjm+1),ndex )2004 CALL histwrite(nid_mth,"qsol",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 1979 2005 c 1980 2006 DO i = 1, klon … … 1982 2008 ENDDO 1983 2009 CALL gr_fi_ecrit(1, klon,iim,jjm+1, zx_tmp_fi2d,zx_tmp_2d) 1984 CALL histwrite(nid_mth,"rain",itap,zx_tmp_2d,iim*(jjm+1),ndex )2010 CALL histwrite(nid_mth,"rain",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 1985 2011 c 1986 2012 DO i = 1, klon … … 1988 2014 ENDDO 1989 2015 CALL gr_fi_ecrit(1, klon,iim,jjm+1, zx_tmp_fi2d,zx_tmp_2d) 1990 CALL histwrite(nid_mth,"plul",itap,zx_tmp_2d,iim*(jjm+1),ndex )2016 CALL histwrite(nid_mth,"plul",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 1991 2017 c 1992 2018 DO i = 1, klon … … 1994 2020 ENDDO 1995 2021 CALL gr_fi_ecrit(1, klon,iim,jjm+1, zx_tmp_fi2d,zx_tmp_2d) 1996 CALL histwrite(nid_mth,"pluc",itap,zx_tmp_2d,iim*(jjm+1),ndex )2022 CALL histwrite(nid_mth,"pluc",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 1997 2023 c 1998 2024 CALL gr_fi_ecrit(1, klon,iim,jjm+1, snow_fall,zx_tmp_2d) 1999 CALL histwrite(nid_mth,"snow",itap,zx_tmp_2d,iim*(jjm+1),ndex )2025 CALL histwrite(nid_mth,"snow",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 2000 2026 c 2001 2027 CALL gr_fi_ecrit(1, klon,iim,jjm+1, agesno,zx_tmp_2d) 2002 CALL histwrite(nid_mth,"ages",itap,zx_tmp_2d,iim*(jjm+1),ndex )2028 CALL histwrite(nid_mth,"ages",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 2003 2029 c 2004 2030 CALL gr_fi_ecrit(1, klon,iim,jjm+1, evap,zx_tmp_2d) 2005 CALL histwrite(nid_mth,"evap",itap,zx_tmp_2d,iim*(jjm+1),ndex )2031 CALL histwrite(nid_mth,"evap",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 2006 2032 c 2007 2033 CALL gr_fi_ecrit(1, klon,iim,jjm+1, topsw,zx_tmp_2d) 2008 CALL histwrite(nid_mth,"tops",itap,zx_tmp_2d,iim*(jjm+1),ndex )2034 CALL histwrite(nid_mth,"tops",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 2009 2035 c 2010 2036 CALL gr_fi_ecrit(1, klon,iim,jjm+1, toplw,zx_tmp_2d) 2011 CALL histwrite(nid_mth,"topl",itap,zx_tmp_2d,iim*(jjm+1),ndex )2037 CALL histwrite(nid_mth,"topl",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 2012 2038 c 2013 2039 CALL gr_fi_ecrit(1, klon,iim,jjm+1, solsw,zx_tmp_2d) 2014 CALL histwrite(nid_mth,"sols",itap,zx_tmp_2d,iim*(jjm+1),ndex )2040 CALL histwrite(nid_mth,"sols",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 2015 2041 c 2016 2042 CALL gr_fi_ecrit(1, klon,iim,jjm+1, sollw,zx_tmp_2d) 2017 CALL histwrite(nid_mth,"soll",itap,zx_tmp_2d,iim*(jjm+1),ndex )2043 CALL histwrite(nid_mth,"soll",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 2018 2044 c 2019 2045 CALL gr_fi_ecrit(1, klon,iim,jjm+1, topsw0,zx_tmp_2d) 2020 CALL histwrite(nid_mth,"tops0",itap,zx_tmp_2d,iim*(jjm+1),ndex )2046 CALL histwrite(nid_mth,"tops0",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 2021 2047 c 2022 2048 CALL gr_fi_ecrit(1, klon,iim,jjm+1, toplw0,zx_tmp_2d) 2023 CALL histwrite(nid_mth,"topl0",itap,zx_tmp_2d,iim*(jjm+1),ndex )2049 CALL histwrite(nid_mth,"topl0",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 2024 2050 c 2025 2051 CALL gr_fi_ecrit(1, klon,iim,jjm+1, solsw0,zx_tmp_2d) 2026 CALL histwrite(nid_mth,"sols0",itap,zx_tmp_2d,iim*(jjm+1),ndex )2052 CALL histwrite(nid_mth,"sols0",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 2027 2053 c 2028 2054 CALL gr_fi_ecrit(1, klon,iim,jjm+1, sollw0,zx_tmp_2d) 2029 CALL histwrite(nid_mth,"soll0",itap,zx_tmp_2d,iim*(jjm+1),ndex )2055 CALL histwrite(nid_mth,"soll0",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 2030 2056 c 2031 2057 CALL gr_fi_ecrit(1, klon,iim,jjm+1, bils,zx_tmp_2d) 2032 CALL histwrite(nid_mth,"bils",itap,zx_tmp_2d,iim*(jjm+1),ndex )2058 CALL histwrite(nid_mth,"bils",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 2033 2059 c 2034 2060 CALL gr_fi_ecrit(1, klon,iim,jjm+1, sens,zx_tmp_2d) 2035 CALL histwrite(nid_mth,"sens",itap,zx_tmp_2d,iim*(jjm+1),ndex )2061 CALL histwrite(nid_mth,"sens",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 2036 2062 c 2037 2063 CALL gr_fi_ecrit(1, klon,iim,jjm+1, fder,zx_tmp_2d) 2038 CALL histwrite(nid_mth,"fder",itap,zx_tmp_2d,iim*(jjm+1),ndex )2064 CALL histwrite(nid_mth,"fder",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 2039 2065 c 2040 2066 CALL gr_fi_ecrit(1, klon,iim,jjm+1, ruis,zx_tmp_2d) 2041 CALL histwrite(nid_mth,"ruis",itap,zx_tmp_2d,iim*(jjm+1),ndex )2067 CALL histwrite(nid_mth,"ruis",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 2042 2068 c 2043 2069 DO i = 1, klon … … 2045 2071 ENDDO 2046 2072 CALL gr_fi_ecrit(1, klon,iim,jjm+1, zx_tmp_fi2d,zx_tmp_2d) 2047 CALL histwrite(nid_mth,"frtu",itap,zx_tmp_2d,iim*(jjm+1),ndex )2073 CALL histwrite(nid_mth,"frtu",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 2048 2074 c 2049 2075 DO i = 1, klon … … 2051 2077 ENDDO 2052 2078 CALL gr_fi_ecrit(1, klon,iim,jjm+1, zx_tmp_fi2d,zx_tmp_2d) 2053 CALL histwrite(nid_mth,"frtv",itap,zx_tmp_2d,iim*(jjm+1),ndex )2079 CALL histwrite(nid_mth,"frtv",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 2054 2080 c 2055 2081 DO i = 1, klon … … 2057 2083 ENDDO 2058 2084 CALL gr_fi_ecrit(1, klon,iim,jjm+1, zx_tmp_fi2d,zx_tmp_2d) 2059 CALL histwrite(nid_mth,"sicf",itap,zx_tmp_2d,iim*(jjm+1),ndex )2085 CALL histwrite(nid_mth,"sicf",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 2060 2086 c 2061 2087 CALL gr_fi_ecrit(1, klon,iim,jjm+1, albsol,zx_tmp_2d) 2062 CALL histwrite(nid_mth,"albs",itap,zx_tmp_2d,iim*(jjm+1),ndex )2088 CALL histwrite(nid_mth,"albs",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 2063 2089 c 2064 2090 CALL gr_fi_ecrit(1, klon,iim,jjm+1, cdragm,zx_tmp_2d) 2065 CALL histwrite(nid_mth,"cdrm",itap,zx_tmp_2d,iim*(jjm+1),ndex )2091 CALL histwrite(nid_mth,"cdrm",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 2066 2092 c 2067 2093 CALL gr_fi_ecrit(1, klon,iim,jjm+1, cdragh,zx_tmp_2d) 2068 CALL histwrite(nid_mth,"cdrh",itap,zx_tmp_2d,iim*(jjm+1),ndex )2094 CALL histwrite(nid_mth,"cdrh",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 2069 2095 c 2070 2096 CALL gr_fi_ecrit(1, klon,iim,jjm+1, cldl,zx_tmp_2d) 2071 CALL histwrite(nid_mth,"cldl",itap,zx_tmp_2d,iim*(jjm+1),ndex )2097 CALL histwrite(nid_mth,"cldl",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 2072 2098 c 2073 2099 CALL gr_fi_ecrit(1, klon,iim,jjm+1, cldm,zx_tmp_2d) 2074 CALL histwrite(nid_mth,"cldm",itap,zx_tmp_2d,iim*(jjm+1),ndex )2100 CALL histwrite(nid_mth,"cldm",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 2075 2101 c 2076 2102 CALL gr_fi_ecrit(1, klon,iim,jjm+1, cldh,zx_tmp_2d) 2077 CALL histwrite(nid_mth,"cldh",itap,zx_tmp_2d,iim*(jjm+1),ndex )2103 CALL histwrite(nid_mth,"cldh",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 2078 2104 c 2079 2105 CALL gr_fi_ecrit(1, klon,iim,jjm+1, cldt,zx_tmp_2d) 2080 CALL histwrite(nid_mth,"cldt",itap,zx_tmp_2d,iim*(jjm+1),ndex )2106 CALL histwrite(nid_mth,"cldt",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 2081 2107 c 2082 2108 CALL gr_fi_ecrit(1, klon,iim,jjm+1, cldq,zx_tmp_2d) 2083 CALL histwrite(nid_mth,"cldq",itap,zx_tmp_2d,iim*(jjm+1),ndex )2109 CALL histwrite(nid_mth,"cldq",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 2084 2110 c 2085 2111 CALL gr_fi_ecrit(1, klon,iim,jjm+1, ue,zx_tmp_2d) 2086 CALL histwrite(nid_mth,"ue",itap,zx_tmp_2d,iim*(jjm+1),ndex )2112 CALL histwrite(nid_mth,"ue",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 2087 2113 c 2088 2114 CALL gr_fi_ecrit(1, klon,iim,jjm+1, ve,zx_tmp_2d) 2089 CALL histwrite(nid_mth,"ve",itap,zx_tmp_2d,iim*(jjm+1),ndex )2115 CALL histwrite(nid_mth,"ve",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 2090 2116 c 2091 2117 CALL gr_fi_ecrit(1, klon,iim,jjm+1, uq,zx_tmp_2d) 2092 CALL histwrite(nid_mth,"uq",itap,zx_tmp_2d,iim*(jjm+1),ndex )2118 CALL histwrite(nid_mth,"uq",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 2093 2119 c 2094 2120 CALL gr_fi_ecrit(1, klon,iim,jjm+1, vq,zx_tmp_2d) 2095 CALL histwrite(nid_mth,"vq",itap,zx_tmp_2d,iim*(jjm+1),ndex )2121 CALL histwrite(nid_mth,"vq",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 2096 2122 c 2097 2123 c Champs 3D: … … 2099 2125 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, t_seri, zx_tmp_3d) 2100 2126 CALL histwrite(nid_mth,"temp",itap,zx_tmp_3d, 2101 . iim*(jjm+1)*klev,ndex )2127 . iim*(jjm+1)*klev,ndex3d) 2102 2128 c 2103 2129 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, qx(1,1,ivap), zx_tmp_3d) 2104 2130 CALL histwrite(nid_mth,"ovap",itap,zx_tmp_3d, 2105 . iim*(jjm+1)*klev,ndex )2131 . iim*(jjm+1)*klev,ndex3d) 2106 2132 c 2107 2133 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, zphi, zx_tmp_3d) 2108 2134 CALL histwrite(nid_mth,"geop",itap,zx_tmp_3d, 2109 . iim*(jjm+1)*klev,ndex )2135 . iim*(jjm+1)*klev,ndex3d) 2110 2136 c 2111 2137 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, u_seri, zx_tmp_3d) 2112 2138 CALL histwrite(nid_mth,"vitu",itap,zx_tmp_3d, 2113 . iim*(jjm+1)*klev,ndex )2139 . iim*(jjm+1)*klev,ndex3d) 2114 2140 c 2115 2141 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, v_seri, zx_tmp_3d) 2116 2142 CALL histwrite(nid_mth,"vitv",itap,zx_tmp_3d, 2117 . iim*(jjm+1)*klev,ndex )2143 . iim*(jjm+1)*klev,ndex3d) 2118 2144 c 2119 2145 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, omega, zx_tmp_3d) 2120 2146 CALL histwrite(nid_mth,"vitw",itap,zx_tmp_3d, 2121 . iim*(jjm+1)*klev,ndex )2147 . iim*(jjm+1)*klev,ndex3d) 2122 2148 c 2123 2149 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, pplay, zx_tmp_3d) 2124 2150 CALL histwrite(nid_mth,"pres",itap,zx_tmp_3d, 2125 . iim*(jjm+1)*klev,ndex )2151 . iim*(jjm+1)*klev,ndex3d) 2126 2152 c 2127 2153 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, cldfra, zx_tmp_3d) 2128 2154 CALL histwrite(nid_mth,"rneb",itap,zx_tmp_3d, 2129 . iim*(jjm+1)*klev,ndex )2155 . iim*(jjm+1)*klev,ndex3d) 2130 2156 c 2131 2157 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, zx_rh, zx_tmp_3d) 2132 2158 CALL histwrite(nid_mth,"rhum",itap,zx_tmp_3d, 2133 . iim*(jjm+1)*klev,ndex )2159 . iim*(jjm+1)*klev,ndex3d) 2134 2160 c 2135 2161 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, cldliq, zx_tmp_3d) 2136 2162 CALL histwrite(nid_mth,"oliq",itap,zx_tmp_3d, 2137 . iim*(jjm+1)*klev,ndex )2163 . iim*(jjm+1)*klev,ndex3d) 2138 2164 c 2139 2165 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, d_t_dyn, zx_tmp_3d) 2140 2166 CALL histwrite(nid_mth,"dtdyn",itap,zx_tmp_3d, 2141 . iim*(jjm+1)*klev,ndex )2167 . iim*(jjm+1)*klev,ndex3d) 2142 2168 c 2143 2169 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, d_qx_dyn(1,1,ivap), 2144 2170 . zx_tmp_3d) 2145 2171 CALL histwrite(nid_mth,"dqdyn",itap,zx_tmp_3d, 2146 . iim*(jjm+1)*klev,ndex )2172 . iim*(jjm+1)*klev,ndex3d) 2147 2173 c 2148 2174 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, d_t_con, zx_tmp_3d) 2149 2175 CALL histwrite(nid_mth,"dtcon",itap,zx_tmp_3d, 2150 . iim*(jjm+1)*klev,ndex )2176 . iim*(jjm+1)*klev,ndex3d) 2151 2177 c 2152 2178 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, d_q_con, zx_tmp_3d) 2153 2179 CALL histwrite(nid_mth,"dqcon",itap,zx_tmp_3d, 2154 . iim*(jjm+1)*klev,ndex )2180 . iim*(jjm+1)*klev,ndex3d) 2155 2181 c 2156 2182 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, d_t_lsc, zx_tmp_3d) 2157 2183 CALL histwrite(nid_mth,"dtlsc",itap,zx_tmp_3d, 2158 . iim*(jjm+1)*klev,ndex )2184 . iim*(jjm+1)*klev,ndex3d) 2159 2185 c 2160 2186 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, d_q_lsc, zx_tmp_3d) 2161 2187 CALL histwrite(nid_mth,"dqlsc",itap,zx_tmp_3d, 2162 . iim*(jjm+1)*klev,ndex )2188 . iim*(jjm+1)*klev,ndex3d) 2163 2189 c 2164 2190 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, d_t_vdf, zx_tmp_3d) 2165 2191 CALL histwrite(nid_mth,"dtvdf",itap,zx_tmp_3d, 2166 . iim*(jjm+1)*klev,ndex )2192 . iim*(jjm+1)*klev,ndex3d) 2167 2193 c 2168 2194 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, d_q_vdf, zx_tmp_3d) 2169 2195 CALL histwrite(nid_mth,"dqvdf",itap,zx_tmp_3d, 2170 . iim*(jjm+1)*klev,ndex )2196 . iim*(jjm+1)*klev,ndex3d) 2171 2197 c 2172 2198 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, d_t_eva, zx_tmp_3d) 2173 2199 CALL histwrite(nid_mth,"dteva",itap,zx_tmp_3d, 2174 . iim*(jjm+1)*klev,ndex )2200 . iim*(jjm+1)*klev,ndex3d) 2175 2201 c 2176 2202 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, d_q_eva, zx_tmp_3d) 2177 2203 CALL histwrite(nid_mth,"dqeva",itap,zx_tmp_3d, 2178 . iim*(jjm+1)*klev,ndex )2204 . iim*(jjm+1)*klev,ndex3d) 2179 2205 c 2180 2206 C CALL gr_fi_ecrit(klev,klon,iim,jjm+1, d_t_ajs, zx_tmp_3d) 2181 2207 C CALL histwrite(nid_mth,"dtajs",itap,zx_tmp_3d, 2182 C . iim*(jjm+1)*klev,ndex )2208 C . iim*(jjm+1)*klev,ndex3d) 2183 2209 c 2184 2210 C CALL gr_fi_ecrit(klev,klon,iim,jjm+1, d_q_ajs, zx_tmp_3d) 2185 2211 C CALL histwrite(nid_mth,"dqajs",itap,zx_tmp_3d, 2186 C . iim*(jjm+1)*klev,ndex )2212 C . iim*(jjm+1)*klev,ndex3d) 2187 2213 c 2188 2214 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, heat, zx_tmp_3d) 2189 2215 CALL histwrite(nid_mth,"dtswr",itap,zx_tmp_3d, 2190 . iim*(jjm+1)*klev,ndex )2216 . iim*(jjm+1)*klev,ndex3d) 2191 2217 c 2192 2218 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, heat0, zx_tmp_3d) 2193 2219 CALL histwrite(nid_mth,"dtsw0",itap,zx_tmp_3d, 2194 . iim*(jjm+1)*klev,ndex )2220 . iim*(jjm+1)*klev,ndex3d) 2195 2221 c 2196 2222 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, cool, zx_tmp_3d) 2197 2223 CALL histwrite(nid_mth,"dtlwr",itap,zx_tmp_3d, 2198 . iim*(jjm+1)*klev,ndex )2224 . iim*(jjm+1)*klev,ndex3d) 2199 2225 c 2200 2226 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, cool0, zx_tmp_3d) 2201 2227 CALL histwrite(nid_mth,"dtlw0",itap,zx_tmp_3d, 2202 . iim*(jjm+1)*klev,ndex )2228 . iim*(jjm+1)*klev,ndex3d) 2203 2229 c 2204 2230 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, d_u_vdf, zx_tmp_3d) 2205 2231 CALL histwrite(nid_mth,"duvdf",itap,zx_tmp_3d, 2206 . iim*(jjm+1)*klev,ndex )2232 . iim*(jjm+1)*klev,ndex3d) 2207 2233 c 2208 2234 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, d_v_vdf, zx_tmp_3d) 2209 2235 CALL histwrite(nid_mth,"dvvdf",itap,zx_tmp_3d, 2210 . iim*(jjm+1)*klev,ndex )2236 . iim*(jjm+1)*klev,ndex3d) 2211 2237 c 2212 2238 IF (ok_orodr) THEN 2213 2239 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, d_u_oro, zx_tmp_3d) 2214 2240 CALL histwrite(nid_mth,"duoro",itap,zx_tmp_3d, 2215 . iim*(jjm+1)*klev,ndex )2241 . iim*(jjm+1)*klev,ndex3d) 2216 2242 c 2217 2243 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, d_v_oro, zx_tmp_3d) 2218 2244 CALL histwrite(nid_mth,"dvoro",itap,zx_tmp_3d, 2219 . iim*(jjm+1)*klev,ndex )2245 . iim*(jjm+1)*klev,ndex3d) 2220 2246 c 2221 2247 ENDIF … … 2224 2250 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, d_u_lif, zx_tmp_3d) 2225 2251 CALL histwrite(nid_mth,"dulif",itap,zx_tmp_3d, 2226 . iim*(jjm+1)*klev,ndex )2252 . iim*(jjm+1)*klev,ndex3d) 2227 2253 c 2228 2254 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, d_v_lif, zx_tmp_3d) 2229 2255 CALL histwrite(nid_mth,"dvlif",itap,zx_tmp_3d, 2230 . iim*(jjm+1)*klev,ndex )2256 . iim*(jjm+1)*klev,ndex3d) 2231 2257 ENDIF 2232 2258 C 2233 2259 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, wo, zx_tmp_3d) 2234 2260 CALL histwrite(nid_mth,"ozone",itap,zx_tmp_3d, 2235 . iim*(jjm+1)*klev,ndex )2261 . iim*(jjm+1)*klev,ndex3d) 2236 2262 c 2237 2263 IF (nqmax.GE.3) THEN … … 2241 2267 WRITE(str2,'(i2.2)') iq 2242 2268 CALL histwrite(nid_mth,"trac"//str2,itap,zx_tmp_3d, 2243 . iim*(jjm+1)*klev,ndex )2269 . iim*(jjm+1)*klev,ndex3d) 2244 2270 ELSE 2245 2271 PRINT*, "Trop de traceurs" … … 2249 2275 ENDIF 2250 2276 c 2251 if (ok_sync) call histsync 2277 if (ok_sync) then 2278 call histsync(nid_mth) 2279 endif 2252 2280 ENDIF 2253 2281 c 2254 2282 IF (ok_instan) THEN 2255 2283 c 2256 ndex(1) = 0 2284 ndex2d = 0 2285 ndex3d = 0 2257 2286 c 2258 2287 c Champs 2D: 2259 2288 c 2289 i = NINT(zout/zsto) 2290 CALL gr_fi_ecrit(1,klon,iim,jjm+1,pphis,zx_tmp_2d) 2291 CALL histwrite(nid_ins,"phis",i,zx_tmp_2d,iim*(jjm+1),ndex2d) 2292 c 2293 i = NINT(zout/zsto) 2294 CALL gr_fi_ecrit(1,klon,iim,jjm+1,paire,zx_tmp_2d) 2295 CALL histwrite(nid_ins,"aire",i,zx_tmp_2d,iim*(jjm+1),ndex2d) 2296 2260 2297 DO i = 1, klon 2261 2298 zx_tmp_fi2d(i) = paprs(i,1) 2262 2299 ENDDO 2263 2300 CALL gr_fi_ecrit(1, klon,iim,jjm+1, zx_tmp_fi2d,zx_tmp_2d) 2264 CALL histwrite(nid_ins,"psol",itap,zx_tmp_2d,iim*(jjm+1),ndex )2301 CALL histwrite(nid_ins,"psol",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 2265 2302 c 2266 2303 CALL gr_fi_ecrit(1, klon,iim,jjm+1, toplw,zx_tmp_2d) 2267 CALL histwrite(nid_ins,"topl",itap,zx_tmp_2d,iim*(jjm+1),ndex )2304 CALL histwrite(nid_ins,"topl",itap,zx_tmp_2d,iim*(jjm+1),ndex2d) 2268 2305 c 2269 2306 c Champs 3D: … … 2271 2308 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, t_seri, zx_tmp_3d) 2272 2309 CALL histwrite(nid_ins,"temp",itap,zx_tmp_3d, 2273 . iim*(jjm+1)*klev,ndex )2310 . iim*(jjm+1)*klev,ndex3d) 2274 2311 c 2275 2312 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, u_seri, zx_tmp_3d) 2276 2313 CALL histwrite(nid_ins,"vitu",itap,zx_tmp_3d, 2277 . iim*(jjm+1)*klev,ndex )2314 . iim*(jjm+1)*klev,ndex3d) 2278 2315 c 2279 2316 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, v_seri, zx_tmp_3d) 2280 2317 CALL histwrite(nid_ins,"vitv",itap,zx_tmp_3d, 2281 . iim*(jjm+1)*klev,ndex )2318 . iim*(jjm+1)*klev,ndex3d) 2282 2319 c 2283 2320 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, zphi, zx_tmp_3d) 2284 2321 CALL histwrite(nid_ins,"geop",itap,zx_tmp_3d, 2285 . iim*(jjm+1)*klev,ndex )2322 . iim*(jjm+1)*klev,ndex3d) 2286 2323 c 2287 2324 CALL gr_fi_ecrit(klev,klon,iim,jjm+1, pplay, zx_tmp_3d) 2288 2325 CALL histwrite(nid_ins,"pres",itap,zx_tmp_3d, 2289 . iim*(jjm+1)*klev,ndex) 2290 c 2291 if (ok_sync) call histsync 2326 . iim*(jjm+1)*klev,ndex3d) 2327 c 2328 if (ok_sync) then 2329 call histsync(nid_ins) 2330 endif 2292 2331 ENDIF 2293 2332 c
Note: See TracChangeset
for help on using the changeset viewer.