Changeset 1211 for LMDZ4/branches


Ignore:
Timestamp:
Jul 17, 2009, 5:45:18 PM (15 years ago)
Author:
musat
Message:

Correction indices region;
type_ecri (ave,ave,ave,inst,inst);
freq. ecriture zoutm (secondes) en attendant les corrections de FH/AI
IM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ4/branches/LMDZ4-dev/libf/phylmd/phys_output_mod.F90

    r1198 r1211  
    508508   type_ecri_files(1) = 'ave(X)'
    509509   type_ecri_files(2) = 'ave(X)'
    510    type_ecri_files(3) = 'inst(X)'
     510   type_ecri_files(3) = 'ave(X)'
    511511   type_ecri_files(4) = 'inst(X)'
    512    type_ecri_files(5) = 'ave(X)'
     512   type_ecri_files(5) = 'inst(X)'
    513513
    514514   clef_files(1) = ok_mensuel
     
    546546   type_ecri(:) = type_ecri_files(:)
    547547
     548   print*,'phys_out_lonmin=',lonmin_reg
     549   print*,'phys_out_lonmax=',lonmax_reg
     550   print*,'phys_out_latmin=',latmin_reg
     551   print*,'phys_out_latmax=',latmax_reg
     552   print*,'phys_out_filenames=',name_files
     553   print*,'phys_out_filetypes=',type_ecri_files
     554   print*,'phys_out_filekeys=',clef_files
     555   print*,'phys_out_filelevels=',lev_files
     556   print*,'phys_out_filetimesteps=',ecrit_files
     557
    548558!!!!!!!!!!!!!!!!!!!!!!! Boucle sur les fichiers !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    549559! Appel de histbeg et histvert pour creer le fichier et les niveaux verticaux !!
     
    568578    IF (clef_files(iff)) THEN
    569579     
    570       zoutm(iff) = ecrit_files(iff) ! Frequence ou l on ecrit
     580      zoutm(iff) = ecrit_files(iff)*86400. ! Frequence ou l on ecrit
    571581
    572582      idayref = day_ref
     
    582592        jmax_ins=jjmp1
    583593
    584 ! correction abderr        do i=1,iim-1
     594! correction abderr       
    585595        do i=1,iim
    586596           print*,'io_lon(i)=',io_lon(i)
    587597           if (io_lon(i).le.lonmin_reg(iff)) imin_ins=i
    588            if (io_lon(i).le.lonmax_reg(iff)) imax_ins=i
     598           if (io_lon(i).le.lonmax_reg(iff)) imax_ins=i+1
    589599        enddo
    590600
    591         do j=1,jjmp1-1
     601        do j=1,jjmp1
    592602            print*,'io_lat(j)=',io_lat(j)
    593603            if (io_lat(j).ge.latmin_reg(iff)) jmax_ins=j+1
     
    595605        enddo
    596606
    597          print*,'On stoke le fichier hist sur, ', &
     607        print*,'On stoke le fichier histoire numero ',iff,' sur ', &
    598608         imin_ins,imax_ins,jmin_ins,jmax_ins
    599          print*,'On stoke le fichier instantanne sur, ', &
     609         print*,'longitudes : ', &
    600610         io_lon(imin_ins),io_lon(imax_ins), &
    601          io_lat(jmin_ins),io_lat(jmax_ins)
     611         'latitudes : ', &
     612         io_lat(jmax_ins),io_lat(jmin_ins)
    602613
    603614 CALL histbeg(name_files(iff),iim,io_lon,jjmp1,io_lat, &
     
    818829!      on ecrit u v t q a 850 700 500 200 au niv 3
    819830
    820    type_ecri(1) = 'inst(X)'
    821    type_ecri(2) = 'inst(X)'
    822    type_ecri(3) = 'inst(X)'
     831   type_ecri(1) = 'ave(X)'
     832   type_ecri(2) = 'ave(X)'
     833   type_ecri(3) = 'ave(X)'
    823834   type_ecri(4) = 'inst(X)'
    824835   type_ecri(5) = 'inst(X)'
     
    10101021         ENDIF ! clef_files
    10111022
    1012          ENDDO !
     1023         ENDDO !  iff
    10131024      end subroutine phys_output_open
    10141025
     
    10341045       real zstophym
    10351046
    1036        if (type_ecri(iff)=='inst(X)') then
     1047       if (type_ecri(iff)=='inst(X)'.OR.type_ecri(iff)=='once') then
    10371048         zstophym=zoutm(iff)
    10381049       else
     
    10741085       call conf_physoutputs(nomvar,flag_var)
    10751086
    1076        if (type_ecri(iff)=='inst(X)') then
     1087       if (type_ecri(iff)=='inst(X)'.OR.type_ecri(iff)=='once') then
    10771088         zstophym=zoutm(iff)
    10781089       else
Note: See TracChangeset for help on using the changeset viewer.