Ignore:
Timestamp:
Jan 4, 2022, 1:20:22 PM (3 years ago)
Author:
abierjon
Message:

Mars GCM:
Some further cleaning of co2condens following r2599 and r2600
that fixed the bug appearing when the scavenging by CO2 ice
was activated.

AB

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/co2condens_mod.F

    r2599 r2601  
    132132      real :: emisref(ngrid)
    133133     
    134       REAL zdq_scav(ngrid,nlayer,nq) ! tendancy due to scavenging by co2
     134      REAL zdq_scav(ngrid,nlayer,nq) ! tendency due to scavenging by co2
    135135      REAL zq(ngrid,nlayer,nq)
    136136
     
    508508             zv(l)   =pv(ig,l)   +pdv( ig,l)  *ptimestep
    509509            do iq=1,nq
    510              zqc(l,iq)=zq(ig,l,iq)+zdq_scav(ig,l,iq)*ptimestep ! zdq_scav=0 if watercloud=false
     510             zqc(l,iq)=zq(ig,l,iq)+zdq_scav(ig,l,iq)*ptimestep ! zdq_scav=0 if co2clouds=true
    511511            enddo
    512512           enddo
     
    678678     &             + condens_layer(ig,l)*zqc(l,iq) )
    679679
    680                     pdqc(ig,l,iq)=pdqc(ig,l,iq)+zdq_scav(ig,l,iq) ! zdq_scav=0 if watercloud=false
     680                    pdqc(ig,l,iq)=pdqc(ig,l,iq)+zdq_scav(ig,l,iq) ! zdq_scav=0 if co2clouds=true
    681681                  END DO
    682682                end if
     
    886886      REAL,INTENT(IN) :: pq(ngrid,nlayer,nq)
    887887      REAL,INTENT(IN) :: rdust(ngrid,nlayer) ! dust effective radius
    888       REAL,INTENT(IN) :: pcondicea(ngrid,nlayer) ! condensation rate in layer  l (kg/m2/s)
     888      REAL,INTENT(IN) :: pcondicea(ngrid,nlayer) ! condensation rate in layer l (kg/m2/s)
    889889      REAL,INTENT(IN) :: pfallice(ngrid,nlayer+1) ! amount of ice falling from layer l (kg/m2/s)
    890890     
    891       REAL,INTENT(OUT) :: pdq_scav(ngrid,nlayer,nq) ! tendancy due to scavenging by co2
     891      REAL,INTENT(OUT) :: pdq_scav(ngrid,nlayer,nq) ! tendency due to scavenging by co2
    892892      REAL,INTENT(OUT) :: pdqsc(ngrid,nq) ! tendency on surface tracers
    893893     
     
    906906      scav_ratio_wice = scav_ratio_dust
    907907      pdq_scav(:,:,:)=0.
    908      
     908      pdqsc(:,:)=0.
     909             
    909910      DO ig=1,ngrid
    910911        scav_dust_mass(nlayer+1)=0.
     
    983984       ENDDO
    984985       ! Calculation of the surface tendencies
    985        pdqsc(ig,igcm_dust_mass)=0.
    986        pdqsc(ig,igcm_dust_number)=0.
    987        
    988986       if (freedust) then
    989987         pdqsc(ig,igcm_dust_mass)=pdqsc(ig,igcm_dust_mass)
     
    1001999         pdqsc(ig,igcm_h2o_ice)=scav_h2o_ice(1)
    10021000       endif
    1003       ENDDO
     1001       
     1002      ENDDO ! loop on ngrid
    10041003     
    10051004      END SUBROUTINE scavenging_by_co2
Note: See TracChangeset for help on using the changeset viewer.