Changeset 3101 for trunk


Ignore:
Timestamp:
Oct 25, 2023, 1:46:14 PM (13 months ago)
Author:
emillour
Message:

correction integer to real + added RCPV_generic

Location:
trunk/LMDZ.GENERIC/libf/phystd
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/generic_cloud_common_h.F90

    r2786 r3101  
    2222    real,save :: RLVTT_generic !Latent heat of vaporization (J/kg)
    2323    real,save :: metallicity_coeff ! Coefficient to take into account the metallicity
    24 
     24    real,save :: RCPV_generic ! specific heat capacity of the tracer vapor at Tref
    2525   
    2626    contains
     
    158158                   print*, 'metallicity_coeff', metallicity_coeff
    159159                end if
    160 
     160                if (index(table_traceurs_line,'RCPV_generic='   ) /= 0) then
     161                    read(table_traceurs_line(index(table_traceurs_line,'RCPV_generic=')+len('RCPV_generic='):),*) RCPV_generic
     162                    print*, 'RCPV_generic', RCPV_generic
     163                end if
     164                         
    161165                ios=1
    162166            end if
  • trunk/LMDZ.GENERIC/libf/phystd/initracer.F90

    r2804 r3101  
    128128       IF (.NOT. allocated(constants_RLVTT_generic)) allocate(constants_RLVTT_generic(nq))
    129129       IF (.NOT. allocated(constants_metallicity_coeff)) allocate(constants_metallicity_coeff(nq))
     130       IF (.NOT. allocated(constants_RCPV_generic)) allocate(constants_RCPV_generic(nq))
    130131
    131132       !! initialization
     
    157158       constants_RLVTT_generic(:)=0
    158159       constants_metallicity_coeff(:)=0
     160       constants_RCPV_generic(:)=0
    159161
    160162       rho_q(:) = 0. !need to be init here if we want to read it from modern traceur with get_tracdat
     
    477479                constants_RLVTT_generic(iq)=RLVTT_generic
    478480                constants_metallicity_coeff(iq)=metallicity_coeff
     481                constants_RCPV_generic(iq)=RCPV_generic
    479482        else
    480483                write(*,*) "This tracer is not condensable, for generic condensation :  : ", noms(iq)
  • trunk/LMDZ.GENERIC/libf/phystd/tracer_h.F90

    r2806 r3101  
    4444       integer,save,allocatable :: is_rgcs(:)               ! 1 if tracer is a radiative generic condensable specie, else 0 (added LT 2022)
    4545       ! Lists of constants for condensable tracers
    46        integer, save, allocatable :: constants_mass(:)                    ! molecular mass of the specie (g/mol)
    47        integer, save, allocatable :: constants_delta_vapH(:)           ! Enthalpy of vaporization (J/mol)
    48        integer, save, allocatable :: constants_Tref(:)                 ! Ref temperature for Clausis-Clapeyron (K)
    49        integer, save, allocatable :: constants_Pref(:)                 ! Reference pressure for Clausius Clapeyron (Pa)
    50        integer, save, allocatable :: constants_epsi_generic(:)                 ! fractionnal molecular mass (m/mugaz)
    51        integer, save, allocatable :: constants_RLVTT_generic(:)                ! Latent heat of vaporization (J/kg)
    52        integer, save, allocatable :: constants_metallicity_coeff(:)    ! Coefficient to take into account the metallicity
     46       real, save, allocatable :: constants_mass(:)                    ! molecular mass of the specie (g/mol)
     47       real, save, allocatable :: constants_delta_vapH(:)           ! Enthalpy of vaporization (J/mol)
     48       real, save, allocatable :: constants_Tref(:)                 ! Ref temperature for Clausis-Clapeyron (K)
     49       real, save, allocatable :: constants_Pref(:)                 ! Reference pressure for Clausius Clapeyron (Pa)
     50       real, save, allocatable :: constants_epsi_generic(:)                 ! fractionnal molecular mass (m/mugaz)
     51       real, save, allocatable :: constants_RLVTT_generic(:)                ! Latent heat of vaporization (J/kg)
     52       real, save, allocatable :: constants_metallicity_coeff(:)    ! Coefficient to take into account the metallicity
     53       real, save, allocatable :: constants_RCPV_generic(:)                   ! specific heat capacity of the tracer vapor at Tref
    5354!$OMP THREADPRIVATE(constants_mass,constants_delta_vapH,constants_Tref)
    5455!$OMP THREADPRIVATE(constants_Pref,constants_epsi_generic)
    55 !$OMP THREADPRIVATE(constants_RLVTT_generic,constants_metallicity_coeff)
     56!$OMP THREADPRIVATE(constants_RLVTT_generic,constants_metallicity_coeff,constants_RCPV_generic)
    5657
    5758!$OMP THREADPRIVATE(is_condensable,is_rgcs)   !also added by LT
Note: See TracChangeset for help on using the changeset viewer.