Ignore:
Timestamp:
Sep 21, 2011, 3:57:48 PM (13 years ago)
Author:
jghattas
Message:
  • Added suffix _mpi_rank to lmdz.out text file. Each processus now write into seperate file but only if lunout/=6 (lunout is set in run.def).
  • Change some print* into write(lunout,*)
  • phytrac.F90 : always include ini_histrac and write_histrac. The file histrac.nc is written if ecrit_tra> 0 (set in physiq.def). Change default value of ecrit_tra into 0.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/phylmd/phys_output_mod.F90

    r1574 r1575  
    631631    include "thermcell.h"
    632632    include "comvert.h"
     633    include "iniprint.h"
    633634
    634635    real,dimension(klon),intent(in) :: rlon
     
    687688    real, dimension(nfiles), save     :: phys_out_latmax        = (/ 90., 90., 90., 90., 90., 90. /)
    688689
    689     print*,'Debut phys_output_mod.F90'
     690    write(lunout,*) 'Debut phys_output_mod.F90'
    690691    ! Initialisations (Valeurs par defaut
    691692
     
    761762    type_ecri_files(:)=type_ecri(:)
    762763
    763     print*,'phys_out_lonmin=',phys_out_lonmin
    764     print*,'phys_out_lonmax=',phys_out_lonmax
    765     print*,'phys_out_latmin=',phys_out_latmin
    766     print*,'phys_out_latmax=',phys_out_latmax
    767     print*,'phys_out_filenames=',phys_out_filenames
    768     print*,'phys_out_filetypes=',type_ecri
    769     print*,'phys_out_filekeys=',clef_files
    770     print*,'phys_out_filestations=',clef_stations
    771     print*,'phys_out_filelevels=',lev_files
     764    write(lunout,*)'phys_out_lonmin=',phys_out_lonmin
     765    write(lunout,*)'phys_out_lonmax=',phys_out_lonmax
     766    write(lunout,*)'phys_out_latmin=',phys_out_latmin
     767    write(lunout,*)'phys_out_latmax=',phys_out_latmax
     768    write(lunout,*)'phys_out_filenames=',phys_out_filenames
     769    write(lunout,*)'phys_out_filetypes=',type_ecri
     770    write(lunout,*)'phys_out_filekeys=',clef_files
     771    write(lunout,*)'phys_out_filestations=',clef_stations
     772    write(lunout,*)'phys_out_filelevels=',lev_files
    772773
    773774!!!!!!!!!!!!!!!!!!!!!!! Boucle sur les fichiers !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     
    785786    enddo
    786787    !          if(prt_level.ge.1) then
    787     print*,'Ap Hybrid = ',Ahyb(1:klev)
    788     print*,'Bp Hybrid = ',Bhyb(1:klev)
    789     print*,'Alt approx des couches pour une haut d echelle de 8km = ',Alt(1:klev)
     788    write(lunout,*)'Ap Hybrid = ',Ahyb(1:klev)
     789    write(lunout,*)'Bp Hybrid = ',Bhyb(1:klev)
     790    write(lunout,*)'Alt approx des couches pour une haut d echelle de 8km = ',Alt(1:klev)
    790791    !          endif
    791792    DO iff=1,nfiles
     
    799800             call convers_timesteps(chtimestep(iff),dtime,ecrit_files(iff))
    800801          endif
    801           print*,'ecrit_files(',iff,')= ',ecrit_files(iff)
     802          write(lunout,*)'ecrit_files(',iff,')= ',ecrit_files(iff)
    802803
    803804          zoutm(iff) = ecrit_files(iff) ! Frequence ou l on ecrit en seconde
     
    817818             ! correction abderr       
    818819             do i=1,iim
    819                 print*,'io_lon(i)=',io_lon(i)
     820                write(lunout,*)'io_lon(i)=',io_lon(i)
    820821                if (io_lon(i).le.phys_out_lonmin(iff)) imin_ins=i
    821822                if (io_lon(i).le.phys_out_lonmax(iff)) imax_ins=i+1
     
    823824
    824825             do j=1,jjmp1
    825                 print*,'io_lat(j)=',io_lat(j)
     826                write(lunout,*)'io_lat(j)=',io_lat(j)
    826827                if (io_lat(j).ge.phys_out_latmin(iff)) jmax_ins=j+1
    827828                if (io_lat(j).ge.phys_out_latmax(iff)) jmin_ins=j
    828829             enddo
    829830
    830              print*,'On stoke le fichier histoire numero ',iff,' sur ', &
     831             write(lunout,*)'On stoke le fichier histoire numero ',iff,' sur ', &
    831832                  imin_ins,imax_ins,jmin_ins,jmax_ins
    832              print*,'longitudes : ', &
     833             write(lunout,*)'longitudes : ', &
    833834                  io_lon(imin_ins),io_lon(imax_ins), &
    834835                  'latitudes : ', &
     
    843844          else if (clef_stations(iff)) THEN
    844845
    845              print*,'phys_output_mod phys_out_filenames=',phys_out_filenames(iff)
     846             write(lunout,*)'phys_output_mod phys_out_filenames=',phys_out_filenames(iff)
    846847
    847848             call histbeg_phy_all(rlon,rlat,pim,tabij,ipt,jpt,plon,plat,plon_bounds,plat_bounds, &
     
    17091710
    17101711    ENDDO !  iff
    1711     print*,'Fin phys_output_mod.F90'
     1712    write(lunout,*)'Fin phys_output_mod.F90'
    17121713  end subroutine phys_output_open
    17131714
     
    18411842    include "temps.h"
    18421843    include "comconst.h"
     1844    include "iniprint.h"
    18431845
    18441846    ipos=scan(str,'0123456789.',.true.)
    18451847    ! 
    18461848    il=len_trim(str)
    1847     print*,ipos,il
     1849    write(lunout,*)ipos,il
    18481850    read(str(1:ipos),*) ttt
    1849     print*,ttt
     1851    write(lunout,*)ttt
    18501852    type=str(ipos+1:il)
    18511853
     
    18571859    if ( type == 'day'.or.type == 'days'.or.type == 'jours'.or.type == 'jour' ) timestep = ttt * dayseconde
    18581860    if ( type == 'mounths'.or.type == 'mth'.or.type == 'mois' ) then
    1859        print*,'annee_ref,day_ref mon_len',annee_ref,day_ref,ioget_mon_len(annee_ref,day_ref)
     1861       write(lunout,*)'annee_ref,day_ref mon_len',annee_ref,day_ref,ioget_mon_len(annee_ref,day_ref)
    18601862       timestep = ttt * dayseconde * mth_len
    18611863    endif
     
    18651867    if ( type == 'TS' ) timestep = ttt * dtime
    18661868
    1867     print*,'type =      ',type
    1868     print*,'nb j/h/m =  ',ttt
    1869     print*,'timestep(s)=',timestep
     1869    write(lunout,*)'type =      ',type
     1870    write(lunout,*)'nb j/h/m =  ',ttt
     1871    write(lunout,*)'timestep(s)=',timestep
    18701872
    18711873  END SUBROUTINE convers_timesteps
Note: See TracChangeset for help on using the changeset viewer.