! ! $Id $ ! SUBROUTINE dynetat0(fichnom,vcov,ucov,teta,q,masse,ps,phis,time0) USE infotrac, only: tname, nqtot, zone_num, iso_indnum,& iso_num, phase_num, alpha_ideal, iqiso, & ok_isotopes, iqpere, tnat use netcdf, only: nf90_open,NF90_NOWRITE,nf90_noerr,nf90_strerror, & nf90_get_var, nf90_inq_varid, nf90_inq_dimid, & nf90_inquire_dimension,nf90_close use control_mod, only : planet_type, timestart USE comvert_mod, ONLY: pa,preff USE comconst_mod, ONLY: im,jm,lllm,daysec,dtvr, & rad,omeg,g,cpp,kappa,pi USE logic_mod, ONLY: fxyhypb,ysinus USE serre_mod, ONLY: clon,clat,grossismx,grossismy USE temps_mod, ONLY: annee_ref,day_ref,itau_dyn, & start_time,day_ini,hour_ini USE ener_mod, ONLY: etot0,ptot0,ztot0,stot0,ang0 IMPLICIT NONE !======================================================================= ! ! Read initial confitions file ! !======================================================================= include "dimensions.h" include "paramet.h" include "comgeom2.h" include "iniprint.h" !=============================================================================== ! Arguments: CHARACTER(LEN=*), INTENT(IN) :: fichnom !--- FILE NAME REAL, INTENT(OUT) :: vcov(iip1,jjm, llm) !--- V COVARIANT WIND REAL, INTENT(OUT) :: ucov(iip1,jjp1,llm) !--- U COVARIANT WIND REAL, INTENT(OUT) :: teta(iip1,jjp1,llm) !--- POTENTIAL TEMP. REAL, INTENT(OUT) :: q(iip1,jjp1,llm,nqtot) !--- TRACERS REAL, INTENT(OUT) :: masse(iip1,jjp1,llm) !--- MASS PER CELL REAL, INTENT(OUT) :: ps(iip1,jjp1) !--- GROUND PRESSURE REAL, INTENT(OUT) :: phis(iip1,jjp1) !--- GEOPOTENTIAL REAL,INTENT(OUT) :: time0 !=============================================================================== ! Local Variables CHARACTER(LEN=256) :: msg, var, modname INTEGER,PARAMETER :: length=100 INTEGER :: iq, fID, vID, idecal REAL :: tab_cntrl(length) ! array containing run parameters INTEGER :: ierr CHARACTER(len=12) :: start_file_type="earth" ! default start file type REAL,ALLOCATABLE :: time(:) ! times stored in start INTEGER :: timelen ! number of times stored in the file INTEGER :: indextime ! index of selected time !REAL hour_ini ! fraction of day of stored date. Equivalent of day_ini, but 0= est absent" write(lunout,*)"dynetat0: J essaie