Changeset 2722 for trunk/LMDZ.GENERIC
- Timestamp:
- Jun 21, 2022, 11:05:45 AM (3 years ago)
- Location:
- trunk/LMDZ.GENERIC/libf/phystd
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phystd/condensation_generic_mod.F90
r2720 r2722 52 52 53 53 ! to call only one time the ice/vap pair of a tracer 54 logical one_call_ice_vap_generic54 logical call_ice_vap_generic 55 55 56 56 INTEGER i, k , nn, iq … … 97 97 ! Let's loop on tracers 98 98 do iq=1,nq 99 one_call_ice_vap_generic = .false.100 99 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) 102 101 103 if( one_call_ice_vap_generic) then ! to call only one time the ice/vap pair of a tracer102 if(call_ice_vap_generic) then ! to call only one time the ice/vap pair of a tracer 104 103 m=constants_mass(iq) 105 104 delta_vapH=constants_delta_vapH(iq) … … 154 153 pdqvaplsc(1:ngrid,1,igcm_generic_vap) = (qvap_deep - pq(1:ngrid,1,igcm_generic_vap))/tau - pdq(1:ngrid,1,igcm_generic_vap) 155 154 endif 156 endif !if( one_call_ice_vap_generic)155 endif !if(call_ice_vap_generic) 157 156 enddo ! iq=1,nq 158 157 -
trunk/LMDZ.GENERIC/libf/phystd/generic_tracer_index_mod.F90
r2720 r2722 3 3 !======================================================================C 4 4 ! 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 6 7 ! 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) 8 12 ! 9 13 !======================================================================C … … 13 17 contains 14 18 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) 16 20 17 21 USE tracer_h, only: noms, is_condensable 18 22 integer nq,iq, igcm_generic_vap, igcm_generic_ice 19 logical one_call_ice_vap_generic23 logical call_ice_vap_generic 20 24 21 25 if((is_condensable(iq)==1) .and. (index(noms(iq),"vap") .ne. 0) & … … 42 46 endif 43 47 44 one_call_ice_vap_generic = .true. 48 call_ice_vap_generic = .true. 49 50 else 51 52 call_ice_vap_generic = .false. 45 53 46 54 end if ! if((is_condensable(iq)==1) .and. (index(noms(iq),"vap") .ne. 0)) -
trunk/LMDZ.GENERIC/libf/phystd/physiq_mod.F90
r2721 r2722 265 265 266 266 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 tracer267 logical call_ice_vap_generic ! to call only one time the ice/vap pair of a tracer 268 268 269 269 real zls ! Solar longitude (radians). … … 1609 1609 do iq=1,nq 1610 1610 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) 1614 1612 1615 if ( one_call_ice_vap_generic) then ! to call only one time the ice/vap pair of a tracer1613 if (call_ice_vap_generic) then ! to call only one time the ice/vap pair of a tracer 1616 1614 1617 1615 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 115 115 116 116 ! to call only one time the ice/vap pair of a tracer 117 logical one_call_ice_vap_generic117 logical call_ice_vap_generic 118 118 119 119 ! Online functions … … 126 126 do iq=1,nq 127 127 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 133 131 134 132 ! Let's get the index of our tracers (we look for igcm _generic_vap and igcm_generic_ice) … … 468 466 dq_rain_generic_cld(1:ngrid,1:nlayer,i_ice_generic) = d_ql(1:ngrid,1:nlayer)/ptimestep 469 467 470 end if ! if( one_call_ice_vap_generic)468 end if ! if(call_ice_vap_generic) 471 469 472 470 end do ! do iq=1,nq loop on tracers
Note: See TracChangeset
for help on using the changeset viewer.