Changeset 3724 for trunk/LMDZ.GENERIC
- Timestamp:
- Apr 14, 2025, 4:42:01 PM (2 months ago)
- Location:
- trunk/LMDZ.GENERIC
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phystd/initracer.F90
r3653 r3724 129 129 IF (.NOT. allocated(constants_metallicity_coeff)) allocate(constants_metallicity_coeff(nq)) 130 130 IF (.NOT. allocated(constants_RCPV_generic)) allocate(constants_RCPV_generic(nq)) 131 IF (.NOT.ALLOCATED(half_life)) ALLOCATE(half_life(nqtot)) 132 IF (.NOT.ALLOCATED(top_prod)) ALLOCATE(top_prod(nqtot)) 133 IF (.NOT.ALLOCATED(bot_prod)) ALLOCATE(bot_prod(nqtot)) 131 134 132 135 !! initialization … … 141 144 is_recomb_qset(:) = 0 142 145 is_recomb_qotf(:) = 0 146 half_life(:) = 0. 147 top_prod(:) = 0. 148 bot_prod(:) = 0. 143 149 144 150 ! Added by JVO 2017 : these arrays are handled later … … 716 722 write(*,*)'Parameter value (default) : '// & 717 723 'is_rgcs = ',is_rgcs(iq) 718 endif 724 end if 725 ! option top_prod 726 if (index(tracline,'top_prod=') .ne. 0) then 727 read(tracline(index(tracline,'top_prod=') & 728 +len('top_prod='):),*) top_prod(iq) 729 write(*,*) ' Parameter value (traceur.def) : top_prod=', & 730 top_prod(iq) 731 else 732 write(*,*) ' Parameter value (default) : top_prod=', & 733 top_prod(iq) 734 end if 735 ! option bot_prod 736 if (index(tracline,'bot_prod=') .ne. 0) then 737 read(tracline(index(tracline,'bot_prod=') & 738 +len('bot_prod='):),*) bot_prod(iq) 739 write(*,*) ' Parameter value (traceur.def) : bot_prod=', & 740 bot_prod(iq) 741 else 742 write(*,*) ' Parameter value (default) : bot_prod=', & 743 bot_prod(iq) 744 end if 719 745 end subroutine get_tracdat 720 746 -
trunk/LMDZ.GENERIC/libf/phystd/physiq_mod.F90
r3717 r3724 37 37 igcm_h2o_ice, igcm_h2o_vap, igcm_dustbin, & 38 38 igcm_co2_ice, nesp, is_chim, is_condensable,constants_epsi_generic 39 ! igcm_co2_ice, nesp, is_chim, is_condensable,constants_epsi_generic, & 40 ! half_life, top_prod, bot_prod 39 41 use time_phylmdz_mod, only: ecritphy, iphysiq, nday 40 42 use phyetat0_mod, only: phyetat0,tab_cntrl_mod … … 364 366 REAL,allocatable,save :: zdqchim(:,:,:) ! Calchim_asis routine 365 367 REAL,allocatable,save :: zdqschim(:,:) ! Calchim_asis routine 368 REAL zdqradio(ngrid,nlayer,nq) ! Radioactive decay 366 369 !$OMP THREADPRIVATE(zdqchim,zdqschim) 367 370 real zdqvolc(ngrid,nlayer,nq) ! injection by volcanoes (kg/kg_of_air/s) … … 2072 2075 qsurf_hist(:,:) = qsurf(:,:) 2073 2076 2077 ! ----------------------------- 2078 ! VI.7. Radioactive Tracers 2079 ! ----------------------------- 2080 2081 call radioactive_tracers(ngrid,nlayer,nq,ptimestep,pq,zdqradio) 2082 pdq(1:ngrid,1:nlayer,1:nq) = pdq(1:ngrid,1:nlayer,1:nq) + zdqradio(1:ngrid,1:nlayer,1:nq) 2083 2074 2084 endif! end of if 'tracer' 2075 2085 -
trunk/LMDZ.GENERIC/libf/phystd/tracer_h.F90
r3299 r3724 55 55 !$OMP THREADPRIVATE(constants_Pref,constants_epsi_generic) 56 56 !$OMP THREADPRIVATE(constants_RLVTT_generic,constants_metallicity_coeff,constants_RCPV_generic) 57 58 real, save, allocatable :: half_life(:) ! half-life (s) for radioactive tracers. If 0, tracer is not decaying. 59 real, save, allocatable :: top_prod(:) ! top production rate (1/s) for radioactive tracers. Non-dim, so use 1. 60 real, save, allocatable :: bot_prod(:) ! bottom production rate (1/s) for radioactive tracers. Non-dim, so use 1. 61 !$OMP THREADPRIVATE(half_life,top_prod,bot_prod) 62 57 63 58 64 !$OMP THREADPRIVATE(is_condensable,is_rgcs) !also added by LT
Note: See TracChangeset
for help on using the changeset viewer.