source: LMDZ4/branches/LMDZ4V5.0-dev/libf/phylmd/write_histmthNMC.h @ 2883

Last change on this file since 2883 was 1360, checked in by musat, 15 years ago

Wrong output for ta in histmthNMC
IM

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 KB
Line 
1!
2! $Header$
3!
4c
5       ndex3d = 0
6       itau_w = itau_phy + itap
7ccc
8c  Champs interpolles sur des niveaux de pression du NMC
9c
10c     PARAMETER(nout=3) 
11c nout=1 : in=pdtphys,    out=mth
12c nout=2 : in=pdtphys,    out=day
13c nout=3 : in=pdtphys,    out=hf
14ccc
15       CALL histwrite_phy(nid_mthnmc,"tnondef",itau_w,tnondef(:,:,1))
16c
17       CALL histwrite_phy(nid_mthnmc,"ta",itau_w,twriteSTD(:,:,1))
18c
19       CALL histwrite_phy(nid_mthnmc,"zg",itau_w,phiwriteSTD(:,:,1))
20c
21       CALL histwrite_phy(nid_mthnmc,"hus",itau_w,qwriteSTD(:,:,1))
22c
23       CALL histwrite_phy(nid_mthnmc,"hur",itau_w,rhwriteSTD(:,:,1))
24c
25       CALL histwrite_phy(nid_mthnmc,"ua",itau_w,uwriteSTD(:,:,1))
26c
27       CALL histwrite_phy(nid_mthnmc,"va",itau_w,vwriteSTD(:,:,1))
28c
29       CALL histwrite_phy(nid_mthnmc,"wap",itau_w,wwriteSTD(:,:,1))
30c
31       DO k=1, nlevSTD
32        DO i=1, klon
33         IF(tnondef(i,k,1).NE.missing_val) THEN
34          zx_tmp_fiNC(i,k) = (100.*tnondef(i,k,1))/ecrit_hf2mth
35         ELSE
36          zx_tmp_fiNC(i,k) = missing_val
37         ENDIF
38        ENDDO
39       ENDDO !k=1, nlevSTD
40c
41       CALL histwrite_phy(nid_mthnmc,"psbg",itau_w,zx_tmp_fiNC)
42c
43       CALL histwrite_phy(nid_mthnmc,"uv",itau_w,uvsumSTD(:,:,1))
44c
45       CALL histwrite_phy(nid_mthnmc,"vq",itau_w,vqsumSTD(:,:,1))
46c
47       CALL histwrite_phy(nid_mthnmc,"vT",itau_w,vTsumSTD(:,:,1))
48c
49       CALL histwrite_phy(nid_mthnmc,"wq",itau_w,wqsumSTD(:,:,1))
50c
51       CALL histwrite_phy(nid_mthnmc,"vphi",itau_w,vphisumSTD(:,:,1))
52c
53       CALL histwrite_phy(nid_mthnmc,"wT",itau_w,wTsumSTD(:,:,1))
54c
55       CALL histwrite_phy(nid_mthnmc,"uxu",itau_w,u2sumSTD(:,:,1))
56c
57       CALL histwrite_phy(nid_mthnmc,"vxv",itau_w,v2sumSTD(:,:,1))
58c
59       CALL histwrite_phy(nid_mthnmc,"TxT",itau_w,T2sumSTD(:,:,1))
60c
61      if (ok_sync) then
62c$OMP MASTER
63        call histsync(nid_mthnmc)
64c$OMP END MASTER
65      endif
Note: See TracBrowser for help on using the repository browser.