Changeset 2722 for trunk/LMDZ.GENERIC


Ignore:
Timestamp:
Jun 21, 2022, 11:05:45 AM (3 years ago)
Author:
aslmd
Message:

some modifications for call_ice_vap_generic

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

Legend:

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

    r2720 r2722  
    5252
    5353        ! to call only one time the ice/vap pair of a tracer
    54         logical one_call_ice_vap_generic
     54        logical call_ice_vap_generic
    5555
    5656        INTEGER i, k , nn, iq
     
    9797        ! Let's loop on tracers
    9898        do iq=1,nq
    99                 one_call_ice_vap_generic = .false.
    10099
    101                 call generic_tracer_index(nq,iq,igcm_generic_vap,igcm_generic_ice,one_call_ice_vap_generic)
     100                call generic_tracer_index(nq,iq,igcm_generic_vap,igcm_generic_ice,call_ice_vap_generic)
    102101
    103                 if(one_call_ice_vap_generic) then ! to call only one time the ice/vap pair of a tracer
     102                if(call_ice_vap_generic) then ! to call only one time the ice/vap pair of a tracer
    104103                        m=constants_mass(iq)
    105104                        delta_vapH=constants_delta_vapH(iq)
     
    154153                                pdqvaplsc(1:ngrid,1,igcm_generic_vap) = (qvap_deep - pq(1:ngrid,1,igcm_generic_vap))/tau - pdq(1:ngrid,1,igcm_generic_vap)
    155154                        endif
    156                 endif !if(one_call_ice_vap_generic)
     155                endif !if(call_ice_vap_generic)
    157156        enddo ! iq=1,nq
    158157
  • trunk/LMDZ.GENERIC/libf/phystd/generic_tracer_index_mod.F90

    r2720 r2722  
    33!======================================================================C
    44!
    5 !     This module is to get back the index of a generic condensable tracer, for both the vap & ice parts of the tracer
     5!     This module is to get back the index of a generic condensable tracer
     6!     for both the vap & ice parts of the tracer
    67!
    7 !     
     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
     10!
     11!     Noé Clément & Lucas Teinturier (2022)
    812!
    913!======================================================================C
     
    1317    contains
    1418
    15     subroutine generic_tracer_index(nq,iq,igcm_generic_vap,igcm_generic_ice,one_call_ice_vap_generic)
     19    subroutine generic_tracer_index(nq,iq,igcm_generic_vap,igcm_generic_ice,call_ice_vap_generic)
    1620
    1721        USE tracer_h, only: noms, is_condensable
    1822        integer nq,iq, igcm_generic_vap, igcm_generic_ice
    19         logical one_call_ice_vap_generic
     23        logical call_ice_vap_generic
    2024
    2125        if((is_condensable(iq)==1) .and. (index(noms(iq),"vap") .ne. 0) &
     
    4246            endif
    4347
    44             one_call_ice_vap_generic = .true.
     48            call_ice_vap_generic = .true.
     49       
     50        else
     51
     52            call_ice_vap_generic = .false.
    4553
    4654        end if ! if((is_condensable(iq)==1) .and. (index(noms(iq),"vap") .ne. 0))
  • trunk/LMDZ.GENERIC/libf/phystd/physiq_mod.F90

    r2721 r2722  
    265265
    266266      integer l,ig,ierr,iq,nw,isoil,iesp, igcm_generic_vap, igcm_generic_ice
    267       logical one_call_ice_vap_generic ! to call only one time the ice/vap pair of a tracer
     267      logical call_ice_vap_generic ! to call only one time the ice/vap pair of a tracer
    268268     
    269269      real zls                       ! Solar longitude (radians).
     
    16091609               do iq=1,nq
    16101610
    1611                   one_call_ice_vap_generic = .false.
    1612 
    1613                   call generic_tracer_index(nq,iq,igcm_generic_vap,igcm_generic_ice,one_call_ice_vap_generic)
     1611                  call generic_tracer_index(nq,iq,igcm_generic_vap,igcm_generic_ice,call_ice_vap_generic)
    16141612                 
    1615                   if (one_call_ice_vap_generic) then ! to call only one time the ice/vap pair of a tracer
     1613                  if (call_ice_vap_generic) then ! to call only one time the ice/vap pair of a tracer
    16161614
    16171615                     call planetwide_sumval(massarea(:,:)*dq_rain_generic_cld(:,:,igcm_generic_ice)/totarea_planet*RLVTT/cpp,dItot_tmp)
  • trunk/LMDZ.GENERIC/libf/phystd/rain_generic.F90

    r2721 r2722  
    115115
    116116   ! to call only one time the ice/vap pair of a tracer
    117    logical one_call_ice_vap_generic
     117   logical call_ice_vap_generic
    118118
    119119   ! Online functions
     
    126126   do iq=1,nq
    127127
    128       one_call_ice_vap_generic = .false.
    129 
    130       call generic_tracer_index(nq,iq,igcm_generic_vap,igcm_generic_ice,one_call_ice_vap_generic)
    131 
    132       if(one_call_ice_vap_generic) then ! to call only one time the ice/vap pair of a tracer
     128      call generic_tracer_index(nq,iq,igcm_generic_vap,igcm_generic_ice,call_ice_vap_generic)
     129
     130      if(call_ice_vap_generic) then ! to call only one time the ice/vap pair of a tracer
    133131
    134132         ! Let's get the index of our tracers (we look for igcm _generic_vap and igcm_generic_ice)
     
    468466         dq_rain_generic_cld(1:ngrid,1:nlayer,i_ice_generic) = d_ql(1:ngrid,1:nlayer)/ptimestep
    469467
    470       end if ! if(one_call_ice_vap_generic)
     468      end if ! if(call_ice_vap_generic)
    471469
    472470   end do ! do iq=1,nq loop on tracers
Note: See TracChangeset for help on using the changeset viewer.