Ignore:
Timestamp:
Jan 24, 2019, 4:19:42 PM (6 years ago)
Author:
mvals
Message:

Mars GCM:

  • follow-up and correction of the last change in rocketduststorm_mod.F90: coefdetrain has to be a vector

MV

File:
1 edited

Legend:

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

    r2079 r2083  
    126126
    127127      LOGICAL storm(ngrid)    ! true when there is a dust storm (if the opacity is high): trigger the rocket dust storm scheme
    128       REAL coefdetrain        ! coefficient for detrainment : % of stormdust detrained
     128      REAL coefdetrain(ngrid,nlayer)  ! coefficient for detrainment : % of stormdust detrained
    129129      INTEGER scheme(ngrid)   ! triggered scheme
    130130           
     
    193193      deltahr(:,:)=0.
    194194      scheme(:)=0
    195      
     195      coefdetrain(:,:)=1.
     196
    196197      !! no update for the stormdust tracer and temperature fields
    197198      !! because previous callradite was for background dust
     
    405406                          wmin) .or. (zq_dust_mass(ig,l) .gt.  &
    406407                                     10000.*zq_stormdust_mass(ig,l))) THEN
    407                coefdetrain=1.
     408               coefdetrain(ig,l)=1.
    408409            ELSE IF (max(abs(wrad(ig,l)),abs(wrad(ig,l+1)))   &
    409410                                                       .le. wmax) THEN
    410                coefdetrain=1.*(((1-coefmin)/(wmin-wmax)**2)*     &
     411               coefdetrain(ig,l)=1.*(((1-coefmin)/(wmin-wmax)**2)*     &
    411412                   (max(abs(wrad(ig,l)),abs(wrad(ig,l+1)))-wmax)**2 &
    412413                                                               +coefmin)
    413414            ELSE IF (max(abs(wrad(ig,l)),abs(wrad(ig,l+1))).gt. wmax ) THEN
    414                coefdetrain=coefmin
     415               coefdetrain(ig,l)=coefmin
    415416            ELSE
    416                coefdetrain=coefmin
     417               coefdetrain(ig,l)=coefmin
    417418            ENDIF
    418419          ENDDO ! DO l=1,nlayer
     
    423424        DO ig=1,ngrid
    424425          DO l=1,nlayer
    425             dqdet_stormdust_mass(ig,l)=-coefdetrain*zq_stormdust_mass(ig,l) &
     426            dqdet_stormdust_mass(ig,l)=-coefdetrain(ig,l)*zq_stormdust_mass(ig,l) &
    426427                                                        /ptimestep
    427             dqdet_stormdust_number(ig,l)=-coefdetrain*zq_stormdust_number(ig,l) &
     428            dqdet_stormdust_number(ig,l)=-coefdetrain(ig,l)*zq_stormdust_number(ig,l) &
    428429                                                        /ptimestep
    429430          ENDDO ! DO l=1,nlayer
Note: See TracChangeset for help on using the changeset viewer.