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

Concerns iophys_ini

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.