Changeset 2189


Ignore:
Timestamp:
Dec 12, 2019, 5:17:03 PM (5 years ago)
Author:
emillour
Message:

Mars GCM:
Bug fix in the scavenging routine (missing initialisation of tendencies of
surface tracers) in co2condens.
EM

Location:
trunk/LMDZ.MARS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/README

    r2184 r2189  
    27932793== 04/12/2019 == AB
    27942794Add the instantaneous scavenging by CO2 of dust, ccn and water ice in co2condens_mod. It can be activated or deactivated with the new flag "scavco2cond" (=false by default). Expected to be replaced by the CO2 clouds microphysics in the future.
     2795
     2796== 12/12/2019 == EM
     2797Bug fix in the scavenging routine (missing initialisation of tendencies of
     2798surface tracers) in co2condens.
     2799
     2800 
  • trunk/LMDZ.MARS/libf/phymars/co2condens_mod.F

    r2184 r2189  
    209209c     Tendencies set to 0
    210210c     -------------------------------------
    211       DO l=1,nlayer
    212          DO ig=1,ngrid
    213            zcondicea(ig,l) = 0.
    214            zfallice(ig,l) = 0.
    215            pduc(ig,l)  = 0
    216            pdvc(ig,l)  = 0
    217            pdtc(ig,l) = 0.
    218          END DO
    219       END DO
     211      zcondicea(1:ngrid,1:nlayer) = 0.
     212      zfallice(1:ngrid,1:nlayer+1) = 0.
     213      pduc(1:ngrid,1:nlayer)  = 0
     214      pdvc(1:ngrid,1:nlayer)  = 0
     215      pdtc(1:ngrid,1:nlayer) = 0.
     216      pdqsc(1:ngrid,1:nq) = 0
    220217         
    221       DO iq=1,nq
    222       DO l=1,nlayer
    223          DO ig=1,ngrid
    224            pdqc(ig,l,iq)  = 0
    225          END DO
    226       END DO
    227       END DO
    228 
    229       DO ig=1,ngrid
    230          zfallice(ig,nlayer+1) = 0.
    231          zcondices(ig) = 0.
    232          pdtsrfc(ig) = 0.
    233          pdpsrf(ig) = 0.
    234          condsub(ig) = .false.
    235          zdiceco2(ig) = 0.
    236       ENDDO
     218      pdqc(1:ngrid,1:nlayer,1:nq)  = 0
     219
     220      zcondices(1:ngrid) = 0.
     221      pdtsrfc(1:ngrid) = 0.
     222      pdpsrf(1:ngrid) = 0.
     223      condsub(1:ngrid) = .false.
     224      zdiceco2(1:ngrid) = 0.
     225
    237226      zfallheat=0
    238227     
Note: See TracChangeset for help on using the changeset viewer.