Ignore:
Timestamp:
Feb 20, 2011, 12:20:51 PM (14 years ago)
Author:
aslmd
Message:

LMD_MM_MARS: corrections cycle de l'eau propagees a la nouvelle physique. + corrections readmeteo.F90 [version synchronisee precedemment n etait pas la plus a jour] + corrections api.F90 pour avoir cp, R comme GCM

File:
1 edited

Legend:

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

    r72 r73  
    154154!-------------------------------------------
    155155   INTEGER ::    i,j,k,its,ite,jts,jte,ij
    156    INTEGER ::    subs
     156   INTEGER ::    subs,iii
    157157
    158158   ! *** for LMD physics
     
    623623    CASE(0)  !! NO TRACERS (mars=0)
    624624      wtnom(nq) = 'co2'
     625    CASE(1)
     626      wtnom(1) = 'h2o_vap' 
     627      wtnom(2) = 'h2o_ice'
     628    CASE(2)
     629      wtnom(1) = 'dust'     
    625630    CASE(11) !! newwater mars==11 scalar:qh2o,qh2o_ice,qdust,qdust_number,qco2
    626631      wtnom(nq) = 'co2'
     
    665670#ifdef NEWPHYS
    666671q_prof(:,1:nq) = SCALAR(i,kps:kpe,j,2:nq+1)  !! the names were set above !! one dummy tracer in WRF
    667 q_prof(:,nq) = 0.95 !! cas du CO2 !! TEMPORAIRE
     672  !!! CAS DU CO2
     673  DO iii=1,nq
     674   IF ( wtnom(iii) .eq. 'co2' ) q_prof(:,iii) = 0.95
     675  ENDDO
    668676#else
    669677SELECT CASE (MARS_MODE)
     
    790798! Tracer at surface !
    791799!-------------------!
    792 #ifdef NEWPHYS
    793   !!! a faire !!!
    794   PRINT *, 'WARNING WARNING no tracer at surface'
    795   qsurf_val(:)=0.
    796 #else
    797800SELECT CASE (MARS_MODE)
    798801    CASE(0)  !! NO TRACERS (mars=0)
    799802    qsurf_val(:)=0.
    800803    CASE(1)  !! WATER CYCLE (mars=1)
     804#ifdef NEWPHYS   
     805    qsurf_val(2)=MARS_WICE(i,j)    !! logique avec wtnom(2) = 'h2o_ice' defini ci-dessus
     806    qsurf_val(1)=0.
     807#else
    801808    qsurf_val(2)=MARS_WICE(i,j)    !! attention... H2O ice is tracer nqmx in qsurf in LMD physics
    802     qsurf_val(1)=0.               
     809    qsurf_val(1)=0.
     810#endif   
    803811    CASE(2)  !! DUST CYCLE (mars=2)
    804812    qsurf_val(:)=0.
     813#ifdef NEWPHYS
     814    CASE(11)
     815    qsurf_val(:)=0. !! provisoire       
     816#endif
    805817END SELECT
    806 #endif
    807818
    808819!-------------------!
Note: See TracChangeset for help on using the changeset viewer.