Ignore:
Timestamp:
Mar 20, 2024, 3:05:14 PM (8 months ago)
Author:
afalco
Message:

Pluto PCM:
Changed _vap to _gas;
Included surfprop.F90;
callcorrk includes methane
AF

Location:
trunk/LMDZ.PLUTO/libf/phypluto
Files:
2 edited

Legend:

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

    • Property svn:ignore set to
      *.mod
      vdifc_mod.F.save
  • trunk/LMDZ.PLUTO/libf/phypluto/generic_tracer_index_mod.F90

    r3184 r3275  
    66!     for both the vap & ice parts of the tracer
    77!
    8 !     call_ice_vap_generic is a boolean which tells if the tracer is condensable
    9 !     and allows, if it is condensable, to call the vap/ice pair 
     8!     call_ice_gas_generic is a boolean which tells if the tracer is condensable
     9!     and allows, if it is condensable, to call the vap/ice pair
    1010!
    1111!     Noé Clément & Lucas Teinturier (2022)
     
    1717    contains
    1818
    19     subroutine generic_tracer_index(nq,iq,igcm_generic_vap,igcm_generic_ice,call_ice_vap_generic)
     19    subroutine generic_tracer_index(nq,iq,igcm_generic_gas,igcm_generic_ice,call_ice_gas_generic)
    2020
    2121        USE tracer_h, only: noms, is_condensable
    22         integer nq,iq, igcm_generic_vap, igcm_generic_ice, i_shortname, ii
    23         logical call_ice_vap_generic
     22        integer nq,iq, igcm_generic_gas, igcm_generic_ice, i_shortname, ii
     23        logical call_ice_gas_generic
    2424        character(len=10) :: shortname
    25         if((is_condensable(iq)==1) .and. (index(noms(iq),"vap") .ne. 0) &
     25        if((is_condensable(iq)==1) .and. (index(noms(iq),"gas") .ne. 0) &
    2626                                                    .and. (index(noms(iq),"h2o") .eq. 0) .and. (index(noms(iq),"n2") .eq. 0)) then
    27             ! Let's get the index of our tracers (we look for igcm _generic_vap and igcm_generic_ice)
     27            ! Let's get the index of our tracers (we look for igcm _generic_gas and igcm_generic_ice)
    2828
    29             igcm_generic_vap = iq
     29            igcm_generic_gas = iq
    3030            igcm_generic_ice = -1
    3131
     
    4646            ! ! endif
    4747
    48             ! ! call_ice_vap_generic = .true.
     48            ! ! call_ice_gas_generic = .true.
    4949            i_shortname = index(noms(iq),'_')-1
    5050            shortname=noms(iq)(1:i_shortname)
     
    5959            endif
    6060            ! if we didn't find it before, we look after the vap tracer in pq
    61             if (igcm_generic_ice .eq. -1 .and. (iq<nq)) then 
     61            if (igcm_generic_ice .eq. -1 .and. (iq<nq)) then
    6262                do ii=iq+1,nq
    63                     if (index(noms(ii),adjustl(trim(shortname))) .ne. 0) then 
     63                    if (index(noms(ii),adjustl(trim(shortname))) .ne. 0) then
    6464                        igcm_generic_ice=ii
    6565                        exit
     
    6767                enddo
    6868            endif
    69             call_ice_vap_generic = .true.
     69            call_ice_gas_generic = .true.
    7070        else
    7171
    72             call_ice_vap_generic = .false.
     72            call_ice_gas_generic = .false.
    7373
    7474        end if ! if((is_condensable(iq)==1) .and. (index(noms(iq),"vap") .ne. 0))
Note: See TracChangeset for help on using the changeset viewer.