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