Ignore:
Timestamp:
Jan 9, 2018, 12:26:53 PM (7 years ago)
Author:
jvatant
Message:

Making chemistry handling more flexible - Step 2
+ Added the calculation of the pressure grid in newstart
using Vervack profile in gr_kim_vervack routine
+ Next step : regridding !
--JVO

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.TITAN/libf/dynphy_lonlat/phytitan/newstart.F

    r1871 r1889  
    1717     &                              is_master
    1818      use infotrac, only: infotrac_init, nqtot, tname
     19      USE comchem_h, ONLY: nlaykim_up, nlaykimold
    1920      USE comsoil_h, ONLY: nsoilmx, layer, mlayer, inertiedat
    2021      USE surfdat_h, ONLY: phisfi, albedodat,
     
    130131      real tab_cntrl(100)
    131132      real tab_cntrl_bis(100)
    132 
     133     
    133134c variables diverses
    134135c-------------------
     
    258259
    259260      endif
    260 
    261261
    262262c=======================================================================
     
    536536        CALL lect_start_archive(ngridmx,llm,
    537537     &   date,tsurf,tsoil,emis,q2,
    538      &   t,ucov,vcov,ps,teta,phisold_newgrid,q,qsurf,
    539      &   surfith,nid)
     538     &   t,ucov,vcov,ps,teta,phisold_newgrid,
     539     &   q,qsurf,surfith,nid)
    540540        write(*,*) "OK, read start_archive file"
    541541        ! copy soil thermal inertia
     
    572572      write(*,*) 'q=x : give a specific uniform value to one tracer'
    573573      write(*,*) 'q=profile    : specify a profile for a tracer'
    574 !      write(*,*) 'ini_q : tracers initialisation for chemistry, water an
    575 !     $d ice   '
    576 !      write(*,*) 'ini_q-H2O : tracers initialisation for chemistry and
    577 !     $ice '
    578 !      write(*,*) 'ini_q-iceH2O : tracers initialisation for chemistry on
    579 !     $ly '
    580574      write(*,*) 'isotherm  : Isothermal Temperatures, wind set to zero'
    581575      write(*,*) 'radequi   : Earth-like radiative equilibrium temperature
     
    10711065      CALL inifilr
    10721066      CALL pression(ip1jmp1, ap, bp, ps, p3d)
     1067     
     1068
     1069c=========================================================================
     1070c  Calcul de la dimension verticale pour la chimie  - JVO 2017
     1071c  start_archive seulement, la grille verticale pouvant avoir ete modifiee
     1072c==========================================================================
     1073
     1074      IF (choix_1.eq.0) THEN
     1075
     1076        ! Calculate the # of upper chemistry layers with the "new" pressure grid
     1077        ! For this we use Vervack profile for upper atmosphere with dz=10km
     1078
     1079        CALL gr_kim_vervack
     1080
     1081        WRITE(*,*)
     1082        WRITE(*,*) " With the compiled vertical grid we found :"
     1083        WRITE(*,*) " Number of upper chemistry layers =", nlaykim_up
     1084       
     1085        ! Regriding is then done, if needed
     1086       
     1087        IF (nlaykimold.ne.nlaykim_up) THEN
     1088
     1089          WRITE(*,*) " Warning, nlaykimold=", nlaykimold
     1090          WRITE(*,*) ' which implies that a regriding on upper chemistry
     1091     & will be performed.'
     1092          WRITE(*,*)
     1093         
     1094!          CALL  regrid_kim
     1095         
     1096        ENDIF
     1097 
     1098      endif ! of if (choix_1.eq.0)     
     1099 
    10731100
    10741101c-----------------------------------------------------------------------
     
    11251152         day_ini=int(date)
    11261153      endif
     1154
    11271155c
    11281156      CALL geopot  ( ip1jmp1, teta  , pk , pks,  phis  , phi   )
Note: See TracChangeset for help on using the changeset viewer.