Changeset 1415 for trunk/LMDZ.GENERIC


Ignore:
Timestamp:
Apr 14, 2015, 9:46:47 AM (10 years ago)
Author:
milmd
Message:

Update newstart and start2archive programs of LMDZ.GENERIC and LMDZ.MARS to the new organization.

Location:
trunk/LMDZ.GENERIC/libf
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/dynlonlat_phylonlat/phystd/newstart.F

    r1403 r1415  
    1515c=======================================================================
    1616
    17       use infotrac, only: iniadvtrac, nqtot, tname
     17      use infotrac, only: infotrac_init, nqtot, tname
    1818      USE tracer_h, ONLY: igcm_co2_ice, igcm_h2o_vap, igcm_h2o_ice
    1919      USE comsoil_h, ONLY: nsoilmx, layer, mlayer, inertiedat
     
    2525!      USE ioipsl_getincom, only: getin
    2626      USE ioipsl_getincom_p, only: getin_p
    27       use control_mod, only: day_step, iphysiq, anneeref
     27      use control_mod, only: day_step, iphysiq, anneeref, planet_type
    2828      use phyredem, only: physdem0, physdem1
    2929      use iostart, only: open_startphy
     
    198198      call initcomgeomphy
    199199! Load tracer number and names:
    200       call iniadvtrac(nqtot,numvanle)
     200!      call iniadvtrac(nqtot,numvanle)
     201      call infotrac_init
    201202! allocate arrays
    202203      allocate(q(iip1,jjp1,llm,nqtot))
    203204      allocate(qsurf(ngridmx,nqtot))
     205     
     206      planet_type="generic"
    204207
    205208c=======================================================================
     
    16371640
    16381641         
    1639       CALL dynredem0("restart.nc",day_ini,anneeref,phis,nqtot)
    1640       CALL dynredem1("restart.nc",0.0,vcov,ucov,teta,q,nqtot,masse,ps)
     1642      CALL dynredem0("restart.nc",day_ini,phis)
     1643      CALL dynredem1("restart.nc",0.0,vcov,ucov,teta,q,masse,ps)
    16411644C
    16421645C Ecriture etat initial physique
     
    16461649     &              nqtot,dtphys,real(day_ini),0.0,
    16471650     &              airefi,albfi,ithfi,zmea,zstd,zsig,zgam,zthe)
    1648       call physdem1("restartfi.nc",nsoilmx,ngridmx,llm,nq,
     1651      call physdem1("restartfi.nc",nsoilmx,ngridmx,llm,nqtot,
    16491652     &                dtphys,real(day_ini),
    16501653     &                tsurf,tsoil,emis,q2,qsurf,
  • trunk/LMDZ.GENERIC/libf/dynlonlat_phylonlat/phystd/start2archive.F

    r1403 r1415  
    1919c=======================================================================
    2020
    21       use infotrac, only: iniadvtrac, nqtot, tname
     21      use infotrac, only: infotrac_init, nqtot, tname
    2222      USE comsoil_h
    2323      USE comgeomfi_h, ONLY: lati, long, area
     
    2828      USE ioipsl_getincom
    2929      USE planete_mod, only: year_day
     30      USE control_mod, only: planet_type
    3031      USE callkeys_mod, ONLY: ok_slab_ocean
    3132      use filtreg_mod, only: inifilr
     
    154155      IF (.not. ALLOCATED(area)) ALLOCATE(area(ngridmx))
    155156
     157      planet_type="generic"
     158
    156159c=======================================================================
    157160c Lecture des donnees
    158161c=======================================================================
    159162! Load tracer number and names:
    160       call iniadvtrac(nqtot,numvanle)
     163!      call iniadvtrac(nqtot,numvanle)
     164      call infotrac_init
    161165
    162166! allocate arrays:
     
    168172
    169173      fichnom = 'start.nc'
    170       CALL dynetat0(fichnom,nqtot,vcov,ucov,teta,q,masse,
     174      CALL dynetat0(fichnom,vcov,ucov,teta,q,masse,
    171175     .       ps,phis,timedyn)
    172176
  • trunk/LMDZ.GENERIC/libf/phystd/phyetat0.F90

    r1384 r1415  
    378378      write(*,*) "phyetat0: Failed loading <",trim(txt),">"
    379379      write(*,*) "         ",trim(txt)," is set to zero"
     380      qsurf(:,iq) = 0.
    380381    else
    381382      write(*,*) "phyetat0: Surface tracer <",trim(txt),"> range:", &
Note: See TracChangeset for help on using the changeset viewer.