--- trunk/bibio/initdynav.f90 2013/11/15 18:45:49 76 +++ trunk/Sources/bibio/initdynav.f 2015/04/29 15:47:56 134 @@ -6,7 +6,7 @@ contains - subroutine initdynav(day0, anne0, tstep, nq, t_ops, t_wrt) + subroutine initdynav(tstep, nq, t_ops, t_wrt) ! From initdynav.F, version 1.1.1.1, 2004/05/19 12:53:05 ! L. Fairhead, LMD @@ -14,10 +14,9 @@ ! Routine d'initialisation des écritures des fichiers histoires au ! format IOIPSL. Initialisation du fichier histoire moyenne. - use calendar, ONLY: ymds2ju USE comgeom, ONLY: rlatu, rlonv USE dimens_m, ONLY: llm - USE disvert_m, ONLY: nivsigs + use dynetat0_m, only: day_ref, annee_ref USE histbeg_totreg_m, ONLY: histbeg_totreg USE histdef_m, ONLY: histdef USE histend_m, ONLY: histend @@ -26,8 +25,8 @@ USE nr_util, ONLY: pi USE paramet_m, ONLY: iip1, jjp1 USE temps, ONLY: itau_dyn + use ymds2ju_m, ONLY: ymds2ju - integer, intent(in):: day0, anne0 ! date de référence real, intent(in):: tstep ! fréquence d'écriture integer, intent(in):: nq ! nombre de traceurs real, intent(in):: t_ops ! fréquence de l'opération pour IOIPSL @@ -36,17 +35,18 @@ ! Variables locales integer horiid, zvertiid real julian - integer iq, ii, jj + integer iq, l !---------------------------------------------------- print *, "Call sequence information: initdynav" - CALL ymds2ju(anne0, 1, day0, 0., julian) + CALL ymds2ju(annee_ref, 1, day_ref, 0., julian) call histbeg_totreg('dyn_hist_ave.nc', rlonv * 180. / pi, & rlatu * 180. / pi, 1, iip1, 1, jjp1, itau_dyn, julian, tstep, & horiid, histaveid) - call histvert(histaveid, 'sigss', 'Niveaux sigma', 'Pa', nivsigs, zvertiid) + call histvert(histaveid, 'sigss', 'Niveaux sigma', '', & + (/(real(l), l = 1, llm)/), zvertiid) call histdef(histaveid, 'u', 'vents u scalaires moyennes', 'm/s', iip1, & jjp1, horiid, llm, 1, llm, zvertiid, 'ave(X)', t_ops, t_wrt)