source: LMDZ4/branches/IPSL-CM4_IPCC_patches/libf/phylmd/write_histmthNMC.h @ 599

Last change on this file since 599 was 524, checked in by lmdzadmin, 21 years ago

Initial revision

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1!
2! $Header$
3!
4c     IF (ok_mensuelNMC) THEN
5      IF (ok_mensuel) THEN
6c
7      ndex2d = 0
8      ndex3d = 0
9c
10c Champs 2D:
11c
12
13        zsto = dtime
14        zout = dtime * ecrit_mth
15        itau_w = itau_phy + itap
16
17      i = NINT(zout/zsto)
18c
19c  Champs interpolles sur des niveaux de pression du NMC
20c110304 BEG
21      DO k=1, nlevSTD
22c
23         bb=clevSTD(k)
24c
25         IF(k.GE.2) THEN
26          aa=clevSTD(k)
27          bb=aa(1:lnblnk1(aa))
28         ENDIF
29c
30      CALL gr_fi_ecrit(1, klon,iim,jjmp1, tlevSTD(:,k),zx_tmp_2d)
31      CALL histwrite(nid_nmc,"t"//bb,itau_w,zx_tmp_2d,
32     $       iim*jjmp1,ndex2d)
33c
34      CALL gr_fi_ecrit(1, klon,iim,jjmp1, philevSTD(:,k),zx_tmp_2d)
35      CALL histwrite(nid_nmc,"phi"//bb,itau_w,zx_tmp_2d,
36     $       iim*jjmp1,ndex2d)
37c
38      CALL gr_fi_ecrit(1, klon,iim,jjmp1, qlevSTD(:,k),zx_tmp_2d)
39      CALL histwrite(nid_nmc,"q"//bb,itau_w,zx_tmp_2d,
40     $       iim*jjmp1,ndex2d)
41c
42      CALL gr_fi_ecrit(1, klon,iim,jjmp1, rhlevSTD(:,k),zx_tmp_2d)
43      CALL histwrite(nid_nmc,"rh"//bb,itau_w,zx_tmp_2d,
44     $       iim*jjmp1,ndex2d)
45c
46      CALL gr_fi_ecrit(1, klon,iim,jjmp1, ulevSTD(:,k),zx_tmp_2d)
47      CALL histwrite(nid_nmc,"u"//bb,itau_w,zx_tmp_2d,
48     $       iim*jjmp1,ndex2d)
49c
50      CALL gr_fi_ecrit(1, klon,iim,jjmp1, vlevSTD(:,k),zx_tmp_2d)
51      CALL histwrite(nid_nmc,"v"//bb,itau_w,zx_tmp_2d,
52     $       iim*jjmp1,ndex2d)
53c
54      ENDDO !k=1, nlevSTD
55ccc
56c110304 END
57c
58      if (ok_sync) then
59        call histsync(nid_nmc)
60      endif
61
62      ENDIF
Note: See TracBrowser for help on using the repository browser.