Changeset 2467 for trunk/LMDZ.MARS/libf/aeronomars
- Timestamp:
- Mar 3, 2021, 1:48:21 PM (4 years ago)
- Location:
- trunk/LMDZ.MARS/libf/aeronomars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/aeronomars/moldiff_red.F90
r2461 r2467 1 1 subroutine moldiff_red(ngrid,nlayer,nq,pplay,pplev,pt,pdt,pq,pdq,& 2 ptimestep,zzlay,pdteuv,pdtconduc,pdqdiff) 2 ptimestep,zzlay,pdteuv,pdtconduc,pdqdiff,& 3 PhiEscH,PhiEscH2,PhiEscD) 3 4 4 5 use tracer_mod, only: noms, mmol 5 6 use geometry_mod, only: cell_area 7 use planetwide_mod, only: planetwide_sumval 6 8 7 9 implicit none … … 30 32 real pdtconduc(ngrid,nlayer) 31 33 real pdqdiff(ngrid,nlayer,nq) 34 real*8 PhiEscH,PhiEscH2,PhiEscD 32 35 ! 33 36 ! Local … … 43 46 real*8 masseU,kBolt,RgazP,Rmars,Grav,Mmars 44 47 real*8 rho0,D0,T0,H0,time0,dZ,time,dZraf,tdiff,Zmin,Zmax 45 real*8 FacEsc,invsgmu,PhiEscH,PhiEscH2,PhiEscD 48 real*8 FacEsc,invsgmu 49 real*8 PhiauxH(ngrid),PhiauxH2(ngrid),PhiauxD(ngrid) 46 50 real*8 hp(nlayer) 47 51 real*8 pp(nlayer) … … 598 602 ! the trend only at the end 599 603 600 if (i_h .ne. 1000) PhiEscH=PhiEscH+wi(i_h)*Nrafk(nlraf,i_h)*cell_area(ig) ! in s-1 601 if (i_h2 .ne. 1000) PhiEscH2=PhiEscH2+wi(i_h2)*Nrafk(nlraf,i_h2)*cell_area(ig) ! in s-1 (U in m/s, aire in m2, Nrafk in m-3) 602 if (i_d .ne. 1000) PhiEscD=PhiEscD+wi(i_d)*Nrafk(nlraf,i_d)*cell_area(ig) 604 ! if (i_h .ne. 1000) PhiEscH=PhiEscH+wi(i_h)*Nrafk(nlraf,i_h)*cell_area(ig) ! in s-1 605 if (i_h .ne. 1000) PhiauxH(ig)=wi(i_h)*Nrafk(nlraf,i_h)*cell_area(ig) ! in s-1 606 ! if (i_h2 .ne. 1000) PhiEscH2=PhiEscH2+wi(i_h2)*Nrafk(nlraf,i_h2)*cell_area(ig) ! in s-1 (U in m/s, aire in m2, Nrafk in m-3) 607 if (i_h2 .ne. 1000) PhiauxH2(ig)=wi(i_h2)*Nrafk(nlraf,i_h2)*cell_area(ig) 608 ! if (i_d .ne. 1000) PhiEscD=PhiEscD+wi(i_d)*Nrafk(nlraf,i_d)*cell_area(ig) 609 if (i_d .ne. 1000) PhiauxD(ig)=wi(i_d)*Nrafk(nlraf,i_d)*cell_area(ig) 603 610 ! print*,'test',ig,wi(i_h),wi(i_h2),Nrafk(nlraf,i_h),Nrafk(nlraf,i_h2),Nrafk(nlraf,i_d),cell_area(ig),PhiEscH,PhiEscH2,i_h,i_h2,i_d,PhiEscD 604 611 ! stop … … 657 664 enddo ! ig loop 658 665 ! print*,'Escape flux H, H2,D (s-1)',PhiEscH,PhiEscH2,PhiEscD 666 if (i_h.ne.1000) call planetwide_sumval(PhiauxH,PhiEscH) 667 if (i_h2.ne.1000) call planetwide_sumval(PhiauxH2,PhiEscH2) 668 if (i_d.ne.1000) call planetwide_sumval(PhiauxD,PhiEscD) 659 669 660 670 return … … 1178 1188 endif 1179 1189 enddo 1180 ! D(l)=1d0/interm 1190 !Temporary: eliminate modification to include Wilke's formulation 1191 !back to the old scheme to check effect 1192 !D(l)=1d0/interm 1181 1193 D(l)=(1D0-Nk(l,nn)/N(l))/interm 1182 1194 enddo -
trunk/LMDZ.MARS/libf/aeronomars/thermosphere.F
r1274 r2467 3 3 $ mu0,ptimestep,ptime,zday,tsurf,zzlev,zzlay, 4 4 & pt,pq,pu,pv,pdt,pdq, 5 $ zdteuv,zdtconduc,zdumolvis,zdvmolvis,zdqmoldiff) 5 $ zdteuv,zdtconduc,zdumolvis,zdvmolvis,zdqmoldiff, 6 $ PhiEscH,PhiEscH2,PhiEscD) 6 7 7 8 use conc_mod, only: rnew, cpnew … … 34 35 REAL,INTENT(out) :: zdvmolvis(ngrid,nlayer) 35 36 REAL,INTENT(out) :: zdqmoldiff(ngrid,nlayer,nq) 37 REAL*8,INTENT(out) :: PhiEscH,PhiEscH2,PhiEscD 36 38 37 39 INTEGER :: l,ig … … 80 82 call moldiff_red(ngrid,nlayer,nq, 81 83 & pplay,pplev,pt,pdt,pq,pdq,ptimestep, 82 & zzlay,zdteuv,zdtconduc,zdqmoldiff) 84 & zzlay,zdteuv,zdtconduc,zdqmoldiff, 85 & PhiEscH,PhiEscH2,PhiEscD) 83 86 endif 84 87
Note: See TracChangeset
for help on using the changeset viewer.