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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mesoscale/LMD_MM_MARS/SRC/WRFV2/phys/module_lmd_driver.F

    r118 r126  
    155155   INTEGER ::    i,j,k,its,ite,jts,jte,ij
    156156   INTEGER ::    subs,iii
     157   REAL ::    tau_decay
    157158
    158159   ! *** for LMD physics
     
    620621
    621622SELECT CASE (MARS_MODE) !! ONLY ALLOW FOR MODES DEFINED IN Registry.EM
    622    CASE(4-10,12:)      !! -- CHANGE THIS if YOU ADDED CASES in REGISTRY.EM
     623   CASE(4-10,12-19,21:)      !! -- CHANGE THIS if YOU ADDED CASES in REGISTRY.EM
    623624   PRINT *, 'NOT SUPPORTED, to be done'
    624625   STOP
     
    630631!package   dust2eq      mars==3                      -              scalar:qdust,qdustn
    631632!package   newwater     mars==11                     -              scalar:qh2o,qh2o_ice,qdust,qdustn
     633!package   radioac      mars==20                     -              scalar:qtrac1
    632634!!!!!!!!!!!!!!!!!!! FOR REFERENCE
    633635
     
    652654      wtnom(3)  = 'dust_mass'
    653655      wtnom(4)  = 'dust_number'
     656    CASE(20)
     657      wtnom(1) = 'qtrac1'
    654658END SELECT
    655659#endif
     
    696700   IF ( wtnom(iii) .eq. 'co2' ) q_prof(:,iii) = 0.95
    697701  ENDDO
     702
     703    !! Mars mode 20 : add a passive tracer with radioactive-like decay
     704    !! INIT HERE
     705    IF (firstcall .EQV. .true.) THEN
     706    IF (MARS_MODE .EQ. 20) THEN
     707      q_prof(:,:) = 0.95
     708    ENDIF
     709    ENDIF
     710
    698711#else
    699712SELECT CASE (MARS_MODE)
     
    840853    qsurf_val(2)=MARS_WICE(i,j)    !! logique avec wtnom(2) = 'h2o_ice' defini ci-dessus
    841854    qsurf_val(3)=0.                !! not coupled with lifting for the moment [non remobilise]
     855    CASE(20)
     856    qsurf_val(:)=0.
    842857#else
    843858    CASE(3:)
     
    11951210#ifdef NEWPHYS
    11961211SCALAR(i,kps:kpe,j,1)=0.
    1197 SCALAR(i,kps:kpe,j,2:nq+1)=SCALAR(i,kps:kpe,j,2:nq+1)+pdq(subs,kps:kpe,1:nq)*dt  !!! here dt is needed
     1212!! Mars mode 20 : add a passive tracer with radioactive-like decay
     1213IF (MARS_MODE .EQ. 20) THEN
     1214   print *, 'RADIOACTIVE-LIKE TRACER WITH SOURCE AT SURFACE LAYER.'
     1215   tau_decay=60.*10. !! why not make it a namelist argument?
     1216   SCALAR(i,kps:kpe,j,2) = SCALAR(i,kps:kpe,j,2)*exp(-dt/tau_decay)
     1217   SCALAR(i,1,j,2) = SCALAR(i,1,j,2) + 1. !! this tracer is emitted in the surface layer
     1218ELSE
     1219   SCALAR(i,kps:kpe,j,2:nq+1)=SCALAR(i,kps:kpe,j,2:nq+1)+pdq(subs,kps:kpe,1:nq)*dt  !!! here dt is needed
     1220ENDIF
    11981221#else
    11991222SELECT CASE (MARS_MODE)
Note: See TracChangeset for help on using the changeset viewer.