--- trunk/bibio/initdynav.f 2014/03/06 15:12:00 83 +++ trunk/Sources/dyn3d/initdynav.f 2018/01/23 15:49:10 253 @@ -6,18 +6,17 @@ 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 - ! Routine d'initialisation des écritures des fichiers histoires au - ! format IOIPSL. Initialisation du fichier histoire moyenne. + ! Routine d'initialisation des écritures du fichier histoire + ! moyenne au format IOIPSL. - use calendar, ONLY: ymds2ju - USE comgeom, ONLY: rlatu, rlonv USE dimens_m, ONLY: llm - USE histbeg_totreg_m, ONLY: histbeg_totreg + use dynetat0_m, only: day_ref, annee_ref, rlatu, rlonv + use histbeg_totreg_m, only: histbeg_totreg USE histdef_m, ONLY: histdef USE histend_m, ONLY: histend USE histvert_m, ONLY: histvert @@ -25,23 +24,22 @@ 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 real, intent(in):: t_wrt ! fréquence d'écriture sur le fichier - ! Variables locales - integer horiid, zvertiid + ! Local: real julian - integer iq, ii, jj, l + integer iq, l + integer horiid, zvertiid - !---------------------------------------------------- + !----------------------------------------------------------------------- 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)