/[lmdze]/trunk/libf/bibio/inithist.f90
ViewVC logotype

Diff of /trunk/libf/bibio/inithist.f90

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 18 by guez, Thu Aug 7 12:29:13 2008 UTC revision 30 by guez, Thu Apr 1 09:07:28 2010 UTC
# Line 6  module inithist_m Line 6  module inithist_m
6    
7  contains  contains
8    
9    subroutine inithist(day0, anne0, tstep, nq, fileid, filevid, infile, t_ops, &    subroutine inithist(day0, anne0, tstep, nq, fileid, filevid, t_ops, &
10         t_wrt)         t_wrt)
11    
12      ! From inithist.F,v 1.1.1.1 2004/05/19 12:53:05      ! From inithist.F,v 1.1.1.1 2004/05/19 12:53:05
# Line 21  contains Line 21  contains
21      !                                  histend      !                                  histend
22    
23      !   Entree:      !   Entree:
     !      infile: nom du fichier histoire a creer  
24      !      day0,anne0: date de reference      !      day0,anne0: date de reference
25      !      tstep: duree du pas de temps en seconde      !      tstep: duree du pas de temps en seconde
26      !      t_ops: frequence de l'operation pour IOIPSL      !      t_ops: frequence de l'operation pour IOIPSL
# Line 34  contains Line 33  contains
33    
34      !   L. Fairhead, LMD, 03/99      !   L. Fairhead, LMD, 03/99
35    
36      USE IOIPSL      USE calendar
37        use histcom
38      use dimens_m      use dimens_m
39      use paramet_m      use paramet_m
40      use comconst      use comconst
# Line 47  contains Line 47  contains
47      use iniadvtrac_m      use iniadvtrac_m
48    
49      !   Arguments      !   Arguments
     character(len=*) infile  
50      integer day0, anne0      integer day0, anne0
51      real, intent(in):: tstep, t_ops, t_wrt      real, intent(in):: tstep, t_ops, t_wrt
52      integer fileid, filevid      integer fileid, filevid
53      integer nq      integer nq
54    
55      !   Variables locales      !   Variables locales
   
     integer tau0  
56      real zjulian      real zjulian
57      integer iq      integer iq
58      real rlong(iip1,jjp1), rlat(iip1,jjp1)      real rlong(iip1,jjp1), rlat(iip1,jjp1)
# Line 74  contains Line 71  contains
71      zan = anne0      zan = anne0
72      dayref = day0      dayref = day0
73      CALL ymds2ju(zan, 1, dayref, 0.0, zjulian)      CALL ymds2ju(zan, 1, dayref, 0.0, zjulian)
     tau0 = itau_dyn  
74    
75      do jj = 1, jjp1      do jj = 1, jjp1
76         do ii = 1, iip1         do ii = 1, iip1
# Line 83  contains Line 79  contains
79         enddo         enddo
80      enddo      enddo
81    
82      call histbeg_totreg(infile, rlong(:,1), rlat(1,:), &      call histbeg_totreg("dyn_hist.nc", rlong(:,1), rlat(1,:), &
83           1, iip1, 1, jjp1, &           1, iip1, 1, jjp1, &
84           tau0, zjulian, tstep, uhoriid, fileid)           itau_dyn, zjulian, tstep, uhoriid, fileid)
85      !      !
86      !  Creation du fichier histoire pour la grille en V (oblige pour l'instant,      !  Creation du fichier histoire pour la grille en V (oblige pour l'instant,
87      !  IOIPSL ne permet pas de grilles avec des nombres de point differents dans      !  IOIPSL ne permet pas de grilles avec des nombres de point differents dans
88      !  un meme fichier)      !  un meme fichier)
89    
90      do jj = 1, jjm      do jj = 1, jjm
# Line 100  contains Line 96  contains
96    
97      call histbeg_totreg('dyn_histv.nc', rlong(:,1), rlat(1,:jjm), &      call histbeg_totreg('dyn_histv.nc', rlong(:,1), rlat(1,:jjm), &
98           1, iip1, 1, jjm, &           1, iip1, 1, jjm, &
99           tau0, zjulian, tstep, vhoriid, filevid)           itau_dyn, zjulian, tstep, vhoriid, filevid)
100      !      !
101      !  Appel a histhori pour rajouter les autres grilles horizontales      !  Appel a histhori pour rajouter les autres grilles horizontales
102      !      !

Legend:
Removed from v.18  
changed lines
  Added in v.30

  ViewVC Help
Powered by ViewVC 1.1.21