Ignore:
Timestamp:
Jan 13, 2025, 2:52:33 PM (3 weeks ago)
Author:
debatzbr
Message:

Remove generic_aerosols and generic_condensation, along with their related variables (useless). RENAME THE VARIABLE AEROHAZE TO OPTICHAZE.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.PLUTO/libf/phypluto/initracer.F90

    r3557 r3572  
    33      use surfdat_h, ONLY: dryness
    44      USE tracer_h
    5       USE callkeys_mod, only: aerohaze,nb_monomer,haze,fractal,fasthaze,rad_haze,callmufi
     5      USE callkeys_mod, only: optichaze,nb_monomer,haze,fractal,fasthaze,rad_haze,callmufi
    66      USE recombin_corrk_mod, ONLY: ini_recombin
    77      USE mod_phys_lmdz_para, only: is_master, bcast
    8       use generic_cloud_common_h
    98      use aerosol_mod, only: iaero_haze,i_haze
    109      IMPLICIT NONE
     
    130129       IF (.NOT. allocated(constants_Tref)) allocate(constants_Tref(nq))
    131130       IF (.NOT. allocated(constants_Pref)) allocate(constants_Pref(nq))
    132        IF (.NOT. allocated(constants_epsi_generic)) allocate(constants_epsi_generic(nq))
    133131       IF (.NOT. allocated(constants_RLVTT_generic)) allocate(constants_RLVTT_generic(nq))
    134        IF (.NOT. allocated(constants_metallicity_coeff)) allocate(constants_metallicity_coeff(nq))
    135132       IF (.NOT. allocated(constants_RCPV_generic)) allocate(constants_RCPV_generic(nq))
    136133
     
    160157       constants_Tref(:)=0
    161158       constants_Pref(:)=0
    162        constants_epsi_generic(:)=0
    163159       constants_RLVTT_generic(:)=0
    164        constants_metallicity_coeff(:)=0
    165160       constants_RCPV_generic(:)=0
    166161
     
    418413                ! constants_Tref(iq)=Tref
    419414                ! constants_Pref(iq)=Pref
    420                 ! constants_epsi_generic(iq)=epsi_generic
    421415                ! constants_RLVTT_generic(iq)=RLVTT_generic
    422                 ! constants_metallicity_coeff(iq)=metallicity_coeff
    423416                ! constants_RCPV_generic(iq)=RCPV_generic
    424417        else
     
    477470
    478471        ia=0
    479         if (aerohaze) then
    480            ia=ia+1
    481            iaero_haze=ia
    482            write(*,*) '--- number of haze aerosol = ', iaero_haze
    483 
    484            block=0  ! Only one type of haze is active : the first one set in traceur.def
    485            do iq=1,nq
    486              tracername=noms(iq)
    487              write(*,*) "--> tracername ",iq,'/',nq,' = ',tracername
    488              if (tracername(1:4).eq."haze".and.block.eq.0) then
    489                i_haze=iq
    490                block=1
    491                write(*,*) "i_haze=",i_haze
    492                write(*,*) "Careful: if you set many haze traceurs in &
     472        if (optichaze) then
     473          ia=ia+1
     474          iaero_haze=ia
     475          write(*,*) '--- number of haze aerosol = ', iaero_haze
     476
     477          block=0  ! Only one type of haze is active : the first one set in traceur.def
     478          do iq=1,nq
     479            tracername=noms(iq)
     480            write(*,*) "--> tracername ",iq,'/',nq,' = ',tracername
     481            if (tracername(1:4).eq."haze".and.block.eq.0) then
     482              i_haze=iq
     483              block=1
     484              write(*,*) "i_haze=",i_haze
     485              write(*,*) "Careful: if you set many haze traceurs in &
    493486                traceur.def,only ",tracername," will be radiatively active &
    494487                (first one in traceur.def)"
    495              endif
    496            enddo
    497         endif ! end aerohaze
    498       endif ! end haze
     488            endif
     489          enddo
     490        endif ! end optichaze
     491      endif ! end callmufi or haze
    499492
    500493!     Output for records:
Note: See TracChangeset for help on using the changeset viewer.