Ignore:
Timestamp:
Feb 5, 2019, 6:39:39 PM (6 years ago)
Author:
mvals
Message:

Mars GCM:

  • follow-up of the last change in rocketduststorm_mod.F90

MV

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/rocketduststorm_mod.F90

    r2083 r2090  
    118118      REAL dqdet_stormdust_number(ngrid,nlayer) ! tendancy of detrainement (stormdust number)
    119119
    120       REAL masse(nlayer)     ! mass of atmosphere (kg/m2)
     120      REAL masse_col(nlayer)     ! mass of atmosphere (kg/m2)
    121121      REAL zq(ngrid,nlayer,nq)   ! updated tracers
    122122     
    123       REAL w(nlayer)          ! air mass flux (calculated with the vertical wind velocity profile) used as input in Van Leer (kgair/m2)
    124       REAL wqmass(nlayer+1)   ! tracer (dust_mass) mass flux in Van Leer (kg/m2)
    125       REAL wqnumber(nlayer+1) ! tracer (dust_number) mass flux in Van Leer (kg/m2)
     123      REAL w(ngrid,nlayer)          ! air mass flux (calculated with the vertical wind velocity profile) used as input in Van Leer (kgair/m2)
     124      REAL wqmass(ngrid,nlayer+1)   ! tracer (dust_mass) mass flux in Van Leer (kg/m2)
     125      REAL wqnumber(ngrid,nlayer+1) ! tracer (dust_number) mass flux in Van Leer (kg/m2)
    126126
    127127      LOGICAL storm(ngrid)    ! true when there is a dust storm (if the opacity is high): trigger the rocket dust storm scheme
     
    190190      dqdet_stormdust_number(:,:)=0.
    191191      wrad(:,:)=0.
     192      w(:,:)=0.
     193      wqmass(:,:)=0.
     194      wqnumber(:,:)=0.
    192195      lapserate(:,:)=0.
    193196      deltahr(:,:)=0.
     
    329332            !! Mass of atmosphere in the layer
    330333            DO l=1,nlayer
    331                masse(l)=(pplev(ig,l)-pplev(ig,l+1))/g
     334               masse_col(l)=(pplev(ig,l)-pplev(ig,l+1))/g
    332335            ENDDO
    333336           
    334337            !! Mass flux in kg/m2
    335338            DO l=1,nlayer
    336                w(l)=wrad(ig,l)*(pplev(ig,l)/(r*ztlev(l)))*ptimestep
     339               w(ig,l)=wrad(ig,l)*(pplev(ig,l)/(r*ztlev(l)))*ptimestep
    337340            ENDDO
    338341           
     
    344347           
    345348            !! Van Leer scheme
    346             wqmass(:)=0.
    347             wqnumber(:)=0.
    348349            CALL vl_storm(nlayer,zq_vl_col,2.,   &
    349                   masse,w,wqmass)
     350                  masse_col,w(ig,:),wqmass(ig,:))
    350351            CALL vl_storm(nlayer,zn_vl_col,2.,  &
    351                   masse,w,wqnumber)
     352                  masse_col,w(ig,:),wqnumber(ig,:))
    352353            !! Mass mixing ratio after transport     
    353354            mr_stormdust_mass(ig,:) = zq_vl_col(:)
Note: See TracChangeset for help on using the changeset viewer.