Ignore:
Timestamp:
Dec 23, 2024, 6:08:12 PM (45 hours ago)
Author:
fhourdin
Message:

Concerns iophys_ini

Location:
LMDZ6/trunk/libf/phylmd
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/iophys.F90

    r5390 r5451  
    110110
    111111!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    112       SUBROUTINE iophys_ini(timestep)
     112      SUBROUTINE iophys_ini(timestep,nlev)
     113      USE dimphy, ONLY: klev
    113114      USE mod_phys_lmdz_para, ONLY: is_mpi_root
    114115      USE vertical_layers_mod, ONLY: presnivs
    115116      USE regular_lonlat_mod, ONLY: lon_reg, lat_reg
    116       USE dimphy, ONLY: klev
    117117      USE mod_grid_phy_lmdz, ONLY: klon_glo
    118118      USE time_phylmdz_mod, ONLY : annee_ref, day_ref, day_ini
     
    139139!   -------------
    140140
     141integer, intent(in) :: nlev
     142real, intent(in) :: timestep
     143
    141144real pi
    142145INTEGER nlat_eff
    143146INTEGER jour0,mois0,an0
    144 REAL timestep,t0
     147REAL t0
    145148CHARACTER(len=20) :: calendrier
     149integer ilev
     150real coord_vert(nlev)
    146151
    147152!   Arguments:
     
    178183print*,'iophys_ini annee_ref day_ref',annee_ref,day_ref,day_ini,calend,t0
    179184
    180 
     185if ( nlev == klev ) then
     186     coord_vert=presnivs
     187print*,'ON EST LA '
     188else
     189     do ilev=1,nlev
     190        coord_vert(ilev)=ilev
     191     enddo
     192endif
     193print*,'nlev=',nlev
     194print*,'coord_vert',coord_vert
    181195call iotd_ini('phys.nc', &
    182 size(lon_reg),nlat_eff,klev,lon_reg(:)*180./pi,lat_reg*180./pi,presnivs,jour0,mois0,an0,t0,timestep,calendrier)
     196size(lon_reg),nlat_eff,nlev,lon_reg(:)*180./pi,lat_reg*180./pi,coord_vert,jour0,mois0,an0,t0,timestep,calendrier)
     197 !  SUBROUTINE iotd_ini(fichnom,iim,jjm,llm,prlon,prlat,pcoordv,jour0,mois0,an0,t0,timestep,calendrier)
     198!   -------
    183199    ENDIF
    184200!$OMP END MASTER
     
    216232
    217233      SUBROUTINE iotd_ecrit_seq(nom,lllm,titre,unite,px)
     234!call iotd_ecrit_seq('f0',1,'f0 in thermcell_plume_6A',' ',f0(1:ngrid))
     235
    218236        USE iotd_mod_h
    219237
     
    230248      integer i,j,l,ijl
    231249
     250      !print*,'iotd_ecrit_seq ,nom,lllm,titre,unite,px',nom,lllm,titre,unite,px
    232251      allocate(zx(imax,jmax,lllm))
    233252
  • LMDZ6/trunk/libf/phylmd/lmdz_wake.f90

    r5400 r5451  
    358358IF (CPPKEY_IOPHYS_WK) THEN
    359359  IF (phys_sub) THEN
    360     call iophys_ini(dtimesub)
     360    call iophys_ini(dtimesub,klev)
    361361  ELSE
    362     call iophys_ini(dtime)
     362    call iophys_ini(dtime,klev)
    363363  ENDIF
    364364END IF
  • LMDZ6/trunk/libf/phylmd/output_physiqex_mod.f90

    r5268 r5451  
    5858
    5959   !$OMP MASTER
    60    CALL iophys_ini(pdtphys)
     60   CALL iophys_ini(pdtphys,klev)
    6161   !$OMP END MASTER
    6262   !$OMP BARRIER
  • LMDZ6/trunk/libf/phylmd/yamada_c.F90

    r5390 r5451  
    138138        CALL getin_p('iflag_tke_diff',iflag_tke_diff)
    139139        allocate(l0(klon))
    140 #define IOPHYS
    141 #ifdef IOPHYS
    142 !        call iophys_ini(timestep)
    143 #endif
    144140        firstcall=.false.
    145141      endif
    146142
    147143   IF (ngrid<=0) RETURN ! Bizarre : on n a pas ce probeleme pour coef_diff_turb
    148 
    149 #ifdef IOPHYS
    150 if (okiophys) then
    151 call iophys_ecrit('q2i',klev,'q2 debut my','m2/s2',q2(:,1:klev))
    152 call iophys_ecrit('kmi',klev,'Kz debut my','m/s2',km(:,1:klev))
    153 endif
    154 #endif
    155144
    156145      nlay=klev
Note: See TracChangeset for help on using the changeset viewer.