source: LMDZ4/trunk/libf/phylmd/write_histmthNMC.h @ 945

Last change on this file since 945 was 776, checked in by Laurent Fairhead, 17 years ago

Suite du merge entre la version et la HEAD: quelques modifications
de Yann sur le

LF

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.2 KB
RevLine 
[524]1!
2! $Header$
3!
4      IF (ok_mensuel) THEN
5c
[644]6       ndex3d = 0
7       itau_w = itau_phy + itap
8ccc
9c  Champs interpolles sur des niveaux de pression du NMC
[524]10c
[644]11c     PARAMETER(nout=3) !nout=1 : day; =2 : mth; =3 : NMC
12ccc
13      IF(type_run.EQ."CLIM".OR.type_run.EQ."ENSP") THEN
14ccc
[766]15cym       CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,tsumSTD(:,:,2),
16cym     $      zx_tmp_NC)
17       CALL histwrite_phy(nid_nmc,"temp",itau_w,tsumSTD(:,:,2))
[524]18c
[766]19cym       CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,phisumSTD(:,:,2),
20cym     $     zx_tmp_NC)
21       CALL histwrite_phy(nid_nmc,"phi",itau_w,phisumSTD(:,:,2))
[524]22c
[766]23cym       CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,qsumSTD(:,:,2),
24cym     $     zx_tmp_NC)
25       CALL histwrite_phy(nid_nmc,"q",itau_w,qsumSTD(:,:,2))
[524]26c
[766]27cym       CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,rhsumSTD(:,:,2),
28cym     $     zx_tmp_NC)
29       CALL histwrite_phy(nid_nmc,"rh",itau_w,rhsumSTD(:,:,2))
[524]30c
[766]31cym       CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,usumSTD(:,:,2),
32cym     $     zx_tmp_NC)
33       CALL histwrite_phy(nid_nmc,"u",itau_w,usumSTD(:,:,2))
[644]34c
[766]35cym       CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,vsumSTD(:,:,2),
36cym     $     zx_tmp_NC)
37       CALL histwrite_phy(nid_nmc,"v",itau_w,vsumSTD(:,:,2))
[644]38ccc
39      ELSE IF(type_run.EQ."AMIP".OR.type_run.EQ."CFMI") THEN
40ccc
[766]41cym       CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,tsumSTD(:,:,3),
42cym     $     zx_tmp_NC)
43       CALL histwrite_phy(nid_nmc,"temp",itau_w,tsumSTD(:,:,3))
[644]44c
[766]45cym       CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,phisumSTD(:,:,3),
46cym     $     zx_tmp_NC)
47       CALL histwrite_phy(nid_nmc,"phi",itau_w,phisumSTD(:,:,3))
[644]48c
[766]49cym       CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,qsumSTD(:,:,3),
50cym     $     zx_tmp_NC)
51       CALL histwrite_phy(nid_nmc,"q",itau_w,qsumSTD(:,:,3))
[644]52c
[766]53cym       CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,rhsumSTD(:,:,3),
54cym     $     zx_tmp_NC)
55       CALL histwrite_phy(nid_nmc,"rh",itau_w,rhsumSTD(:,:,3))
[644]56c
[766]57cym       CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,usumSTD(:,:,3),
58cym     $     zx_tmp_NC)
59       CALL histwrite_phy(nid_nmc,"u",itau_w,usumSTD(:,:,3))
[644]60c
[766]61cym       CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,vsumSTD(:,:,3),
62cym     $     zx_tmp_NC)
63       CALL histwrite_phy(nid_nmc,"v",itau_w,vsumSTD(:,:,3))
[644]64c
[766]65cym       CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,wsumSTD(:,:,3),
66cym     $     zx_tmp_NC)
67       CALL histwrite_phy(nid_nmc,"w",itau_w,wsumSTD(:,:,3))
[644]68c
69       DO k=1, nlevSTD
70        DO i=1, klon
71         IF(tnondef(i,k,3).NE.1.E+20) THEN
[694]72          zx_tmp_fiNC(i,k) = (100.*tnondef(i,k,3))/ecrit_hf2mth
[644]73         ELSE
[694]74          zx_tmp_fiNC(i,k) = 1.E+20
[524]75         ENDIF
[644]76        ENDDO
77       ENDDO !k=1, nlevSTD
[524]78c
[766]79cym       CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,zx_tmp_fiNC,zx_tmp_NC)
80       CALL histwrite_phy(nid_nmc,"psbg",itau_w,zx_tmp_fiNC)
[524]81c
[766]82cym       CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,uvsumSTD(:,:,3),
83cym     $     zx_tmp_NC)
84       CALL histwrite_phy(nid_nmc,"uv",itau_w,uvsumSTD(:,:,3))
[524]85c
[766]86cym       CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,vqsumSTD(:,:,3),
87cym     $     zx_tmp_NC)
88       CALL histwrite_phy(nid_nmc,"vq",itau_w,vqsumSTD(:,:,3))
[524]89c
[766]90cym       CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,vTsumSTD(:,:,3),
91cym     $     zx_tmp_NC)
92       CALL histwrite_phy(nid_nmc,"vT",itau_w,vTsumSTD(:,:,3))
[524]93c
[766]94cym       CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1, wqsumSTD(:,:,3),
95cym     $     zx_tmp_NC)
96       CALL histwrite_phy(nid_nmc,"wq",itau_w,wqsumSTD(:,:,3))
[524]97c
[766]98cym       CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,vphisumSTD(:,:,3),
99cym     $     zx_tmp_NC)
100       CALL histwrite_phy(nid_nmc,"vphi",itau_w,vphisumSTD(:,:,3))
[524]101c
[766]102cym       CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,wTsumSTD(:,:,3),
103cym     $     zx_tmp_NC)
104       CALL histwrite_phy(nid_nmc,"wT",itau_w,wTsumSTD(:,:,3))
[524]105c
[766]106cym       CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,u2sumSTD(:,:,3),
107cym     $     zx_tmp_NC)
108       CALL histwrite_phy(nid_nmc,"uxu",itau_w,u2sumSTD(:,:,3))
[644]109c
[766]110cym       CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,v2sumSTD(:,:,3),
111cym     $     zx_tmp_NC)
112       CALL histwrite_phy(nid_nmc,"vxv",itau_w,v2sumSTD(:,:,3))
[644]113c
[766]114cym       CALL gr_fi_ecrit(nlevSTD, klon,iim,jjmp1,T2sumSTD(:,:,3),
115cym     $     zx_tmp_NC)
116       CALL histwrite_phy(nid_nmc,"TxT",itau_w,T2sumSTD(:,:,3))
[644]117c
118      ENDIF !type_run
119c
[524]120      if (ok_sync) then
[766]121c$OMP MASTER
[524]122        call histsync(nid_nmc)
[766]123c$OMP END MASTER
[524]124      endif
125
126      ENDIF
Note: See TracBrowser for help on using the repository browser.