Changeset 2659 for trunk/LMDZ.MARS


Ignore:
Timestamp:
Apr 7, 2022, 4:16:37 PM (3 years ago)
Author:
cmathe
Message:

ticket 100 resolved

Location:
trunk/LMDZ.MARS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/README

    r2651 r2659  
    36803680- turn sugwd.F to sugwd.F90 with extra comments
    36813681- turn yoegwd.h into a module
     3682
     3683== 07/04/2022 == CM
     3684initracer.F : remove nuice_ref, nuiceco2_ref (ticket 100)
     3685              add some test for co2 microphysics
  • trunk/LMDZ.MARS/libf/phymars/initracer.F

    r2628 r2659  
    4747c  rho_dust          ! Mars dust density
    4848c  rho_ice           ! Water ice density
    49 c  nuice_ref         ! Effective variance nueff of the
    50 c                    !   water-ice size distributions
    5149c  doubleq           ! if method with mass (iq=1) and number(iq=2) mixing ratio
    5250c  varian            ! Characteristic variance of log-normal distribution
     
    520518      rho_ice=920.    ! Water ice density (kg.m-3)
    521519      rho_ice_co2=1650.
    522       !Mangan et al., Icarus 2017 :CO2 density = 1.72391-2.53×10−4T – 2.87×10−6T^2
    523       nuice_ref=0.1   ! Effective variance nueff of the
    524                       ! water-ice size distribution
    525       !!!nuice_sed=0.45   ! Sedimentation effective variance
    526                       ! of the water-ice size distribution
    527 
    528       nuiceco2_ref=0.2    !C.M. Effective variance nueff of the
    529                           ! co2-ice size distribution
     520
    530521      if (doubleq) then
    531522c       "doubleq" technique
     
    720711
    721712     
    722 ! Initialisation for CO2 clouds
    723       if (co2clouds ) then
    724         radius(igcm_ccnco2_mass) = radius(igcm_dust_mass)
    725         alpha_lift(igcm_ccnco2_mass) = 1e-30
    726         alpha_devil(igcm_ccnco2_mass) = 1e-30
    727         rho_q(igcm_ccnco2_mass) = rho_dust
    728         radius(igcm_ccnco2_number) = radius(igcm_ccnco2_mass)
    729         alpha_lift(igcm_ccnco2_number) = alpha_lift(igcm_ccnco2_mass)
    730         alpha_devil(igcm_ccnco2_number) = alpha_devil(igcm_ccnco2_mass)
    731         rho_q(igcm_ccnco2_number) = rho_q(igcm_ccnco2_mass)
    732      
    733         radius(igcm_co2)=0.
    734         alpha_lift(igcm_co2) =0.
    735         alpha_devil(igcm_co2)=0.
    736         radius(igcm_co2_ice)=1.e-8
    737         rho_q(igcm_co2_ice)=rho_ice_co2
    738         alpha_lift(igcm_co2_ice) =0.
    739         alpha_devil(igcm_co2_ice)=0.
    740 
    741       endif
    742      
     713
    743714c     Output for records:
    744715c     ~~~~~~~~~~~~~~~~~~
     
    840811             call abort_physic("initracer","co2 clouds issue",1)
    841812          end if
    842           ! TODO: ajouter les tests avec co2useh2o, et meteo_flux, ainsi que les traceurs ccnco2_number
     813          if (igcm_ccnco2_number .eq. 0) then
     814             write(*,*) "initracer: error !!"
     815             write(*,*) "  cannot use co2 clouds option without ",
     816     &            "a ccnco2_number tracer !"
     817             call abort_physic("initracer","co2 clouds issue",1)
     818          end if
     819          if (igcm_ccnco2_mass .eq. 0) then
     820             write(*,*) "initracer: error !!"
     821             write(*,*) "  cannot use co2 clouds option without ",
     822     &            "a ccnco2_mass tracer !"
     823             call abort_physic("initracer","co2 clouds issue",1)
     824          end if
     825          if (co2useh2o) then
     826            if (igcm_ccnco2_h2o_number .eq. 0) then
     827               write(*,*) "initracer: error !!"
     828               write(*,*) "  cannot use co2 clouds option without ",
     829     &              "a ccnco2_h2o_number tracer !"
     830               call abort_physic("initracer","co2 clouds issue",1)
     831            end if
     832            if (igcm_ccnco2_h2o_mass_ice .eq. 0) then
     833               write(*,*) "initracer: error !!"
     834               write(*,*) "  cannot use co2 clouds option without ",
     835     &              "a ccnco2_h2o_mass_ice tracer !"
     836               call abort_physic("initracer","co2 clouds issue",1)
     837            end if
     838            if (igcm_ccnco2_h2o_mass_ccn .eq. 0) then
     839               write(*,*) "initracer: error !!"
     840               write(*,*) "  cannot use co2 clouds option without ",
     841     &              "a ccnco2_h2o_mass_ccn tracer !"
     842               call abort_physic("initracer","co2 clouds issue",1)
     843            end if
     844          end if
     845          if (meteo_flux) then
     846            if (igcm_ccnco2_meteor_number .eq. 0) then
     847               write(*,*) "initracer: error !!"
     848               write(*,*) "  cannot use co2 clouds option without ",
     849     &              "a ccnco2_meteor_number tracer !"
     850               call abort_physic("initracer","co2 clouds issue",1)
     851            end if
     852            if (igcm_ccnco2_meteor_mass .eq. 0) then
     853               write(*,*) "initracer: error !!"
     854               write(*,*) "  cannot use co2 clouds option without ",
     855     &              "a ccnco2_h2o_mass_ice tracer !"
     856               call abort_physic("initracer","co2 clouds issue",1)
     857            end if
     858            if (igcm_ccnco2_meteor_mass .eq. 0) then
     859               write(*,*) "initracer: error !!"
     860               write(*,*) "  cannot use co2 clouds option without ",
     861     &              "a ccnco2_meteor_mass tracer !"
     862               call abort_physic("initracer","co2 clouds issue",1)
     863            end if
     864          end if
    843865       endif
    844866 
     
    9991021       endif ! of if (photochem .or. callthermos)
    10001022
     1023! Initialisation for CO2 clouds
     1024      if (co2clouds) then
     1025        radius(igcm_ccnco2_mass) = radius(igcm_dust_mass)
     1026        alpha_lift(igcm_ccnco2_mass) = 1e-30
     1027        alpha_devil(igcm_ccnco2_mass) = 1e-30
     1028        rho_q(igcm_ccnco2_mass) = rho_dust
     1029        radius(igcm_ccnco2_number) = radius(igcm_ccnco2_mass)
     1030        alpha_lift(igcm_ccnco2_number) = alpha_lift(igcm_ccnco2_mass)
     1031        alpha_devil(igcm_ccnco2_number) = alpha_devil(igcm_ccnco2_mass)
     1032        rho_q(igcm_ccnco2_number) = rho_q(igcm_ccnco2_mass)
     1033
     1034        radius(igcm_co2)=0.
     1035        alpha_lift(igcm_co2) =0.
     1036        alpha_devil(igcm_co2)=0.
     1037        radius(igcm_co2_ice)=1.e-8
     1038        rho_q(igcm_co2_ice)=rho_ice_co2
     1039        alpha_lift(igcm_co2_ice) =0.
     1040        alpha_devil(igcm_co2_ice)=0.
     1041
     1042      endif
     1043
    10011044      end
Note: See TracChangeset for help on using the changeset viewer.