- Timestamp:
- Mar 20, 2024, 3:05:14 PM (8 months ago)
- 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
-
Property
svn:ignore
set to
-
trunk/LMDZ.PLUTO/libf/phypluto/generic_tracer_index_mod.F90
r3184 r3275 6 6 ! for both the vap & ice parts of the tracer 7 7 ! 8 ! call_ice_ vap_generic is a boolean which tells if the tracer is condensable9 ! 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 10 10 ! 11 11 ! Noé Clément & Lucas Teinturier (2022) … … 17 17 contains 18 18 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) 20 20 21 21 USE tracer_h, only: noms, is_condensable 22 integer nq,iq, igcm_generic_ vap, igcm_generic_ice, i_shortname, ii23 logical call_ice_ vap_generic22 integer nq,iq, igcm_generic_gas, igcm_generic_ice, i_shortname, ii 23 logical call_ice_gas_generic 24 24 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) & 26 26 .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_ vapand igcm_generic_ice)27 ! Let's get the index of our tracers (we look for igcm _generic_gas and igcm_generic_ice) 28 28 29 igcm_generic_ vap= iq29 igcm_generic_gas = iq 30 30 igcm_generic_ice = -1 31 31 … … 46 46 ! ! endif 47 47 48 ! ! call_ice_ vap_generic = .true.48 ! ! call_ice_gas_generic = .true. 49 49 i_shortname = index(noms(iq),'_')-1 50 50 shortname=noms(iq)(1:i_shortname) … … 59 59 endif 60 60 ! 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 62 62 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 64 64 igcm_generic_ice=ii 65 65 exit … … 67 67 enddo 68 68 endif 69 call_ice_ vap_generic = .true.69 call_ice_gas_generic = .true. 70 70 else 71 71 72 call_ice_ vap_generic = .false.72 call_ice_gas_generic = .false. 73 73 74 74 end if ! if((is_condensable(iq)==1) .and. (index(noms(iq),"vap") .ne. 0))
Note: See TracChangeset
for help on using the changeset viewer.