Ignore:
Timestamp:
May 23, 2011, 8:40:24 PM (14 years ago)
Author:
acolaitis
Message:

LMD_LES_MARS et LMD_MM_MARS

M 125 000-USERS
Entree d'Arnaud Colaitis chez les committers.

M 125 mars/libf/phymars/dimradmars.h
M 125 mars/libf/phymars/callradite.F
Cas simple conrath sans doubleq OK avec LES par defaut

M 125 mesoscale/LMD_LES_MARS/modif_mars/module_initialize_les.F
Initialisation du LES a partir de profils de temperature potentielle
calcules avec r_cp de module_initialize_les
[en lieu et place du calcul effectue dans wrf_sounding.sci... risque de mismatch !]

M 125 mesoscale/LMD_MM_MARS/SRC/WRFV2/phys/module_lmd_driver.F
M 125 mesoscale/LMD_LES_MARS/modif_mars/Registry.EM
Mars mode 20 : add a passive tracer with radioactive-like decay

A 0 mesoscale/LMD_LES_MARS/modif_mars/makeles_gnome
A + - mesoscale/TESTS/newphys_tracers/callphys.def.mars0.ideal
Modifications mineures, ajout de fichiers pour cas specifiques

Location:
trunk/mesoscale/LMD_LES_MARS/modif_mars
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/mesoscale/LMD_LES_MARS/modif_mars/Registry.EM

    r96 r126  
    118118state  real  QH2O_ICE  ikjftb  scalar  1  -  i01rhusdf=(bdy_interp:dt) "QH2O_ICE"   "Water ice mixing ratio"     "kg kg-1"
    119119state  real  QDUST     ikjftb  scalar  1  -  i01rhusdf=(bdy_interp:dt) "QDUST"      "Dust mixing ratio"          "kg kg-1"
     120state  real  qtrac1    ikjftb  scalar  1  -  i01rhusdf=(bdy_interp:dt) "qtrac1"     "Decaying tracer 1"          "kg kg-1"
    120121####
    121122####
     
    14881489package   water        mars==1                      -              moist:qv;scalar:qh2o,qh2o_ice
    14891490package   dust         mars==2                      -              moist:qv;scalar:qdust
     1491package   radioac      mars==20                     -              scalar:qtrac1
    14901492##### MARS OPTIONS
    14911493##### MARS OPTIONS
  • trunk/mesoscale/LMD_LES_MARS/modif_mars/module_initialize_les.F

    r92 r126  
    798798      real h_input(n), th_input(n), qv_input(n), u_input(n), v_input(n)
    799799
     800! input therm data (element 0 is the ground so it's n+1 but n is 1000 anyway so...)
     801
     802     real r_therm(n),cp_therm(n),p_therm(n),rho_therm(n),t_therm(n)
     803
    800804! diagnostics
    801805
     
    816820      call read_sounding( p_surf, th_surf, qv_surf, &
    817821                          h_input, th_input, qv_input, u_input, v_input,n, nl, debug )
     822
     823! and the therm :
     824
     825      call read_therm(r_therm,cp_therm,p_therm,rho_therm,t_therm,n)
     826
     827! To use r/cp as defined above, one has to recompute teta from T (default MCD computes
     828! teta for a variable r/cp)
     829
     830      do k=1,nl
     831        th_input(k) = t_therm(k)*(p1000mb/p_therm(k))**(r/cp)
     832      enddo
     833      th_surf = t_therm(1)*(p1000mb/p_therm(1))**(r/cp)
     834! -----
    818835
    819836      if(dry) then
     
    957974      end subroutine read_sounding
    958975
     976      subroutine read_therm(r,cp,p,rho,t,n)
     977      implicit none
     978      integer n
     979      real r(n),cp(n),p(n),rho(n),t(n)
     980      logical end_of_file
     981
     982      integer k
     983
     984! first element is the surface
     985
     986      open(unit=11,file='input_therm',form='formatted',status='old')
     987      rewind(11)
     988      end_of_file = .false.
     989      k = 0
     990      do while (.not. end_of_file)
     991
     992        read(11,*,end=101) r(k+1), cp(k+1), p(k+1), rho(k+1), t(k+1)
     993        write(*,*) k, r(k+1), cp(k+1), p(k+1), rho(k+1), t(k+1)
     994        k = k+1
     995        go to 112
     996 101    end_of_file = .true.
     997 112    continue
     998      enddo
     999
     1000      close(unit=11,status = 'keep')
     1001
     1002      end subroutine read_therm
     1003
    9591004END MODULE module_initialize_ideal
Note: See TracChangeset for help on using the changeset viewer.