Changeset 3674
- Timestamp:
- Mar 10, 2025, 2:49:16 PM (3 months ago)
- Location:
- trunk/LMDZ.PLUTO/libf/phypluto
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.PLUTO/libf/phypluto/hazecloud.F90
r3585 r3674 1 subroutine hazecloud(ngrid,nlayer,nq,ptimestep, &1 subroutine hazecloud(ngrid,nlayer,nq,ptimestep,zday, & 2 2 pplay,pplev,pq,pdq,pdist_sol,mu0,pfluxuv,zdqhaze, & 3 3 zdqphot_prec,zdqphot_ch4,zdqconv_prec,declin) … … 49 49 DATA firstcall/.true./ 50 50 REAL ptimestep 51 REAL zday 51 52 REAL pplay(ngrid,nlayer),pplev(ngrid,nlayer+1) 52 53 REAL,INTENT(IN) :: pq(ngrid,nlayer,nq) … … 124 125 ELSE 125 126 ! 1) get longitude/latitude (rad) of anti-subsolar point (max de mu0 - 180) 126 longit=longitude((MAXLOC(mu0,DIM=1,MASK=mu0.GT.0.9))) ! rad 127 IF (longit.GE.0) THEN 128 longit=longit-pi 129 ELSE 130 longit=longit+pi 127 longit=-(zday-int(zday))*2.*pi 128 IF (longit.LE.-pi) THEN 129 longit=longit+2.*pi 131 130 ENDIF 132 131 latit=-declin ! rad 133 134 132 ! 2) Define input parameter for the fit 135 133 valmin=48.74e10 ! minimum value of ipm flux in ph/m2/s -
trunk/LMDZ.PLUTO/libf/phypluto/physiq_mod.F90
r3642 r3674 518 518 zdtsw(:,:) = 0.0 519 519 zdtlw(:,:) = 0.0 520 zdqc(:,:,:)=0. 521 zdqsc(:,:)=0. 520 522 521 523 ! Initialize tracer names, indexes and properties. … … 1270 1272 zdqch4fast(1:ngrid) 1271 1273 zdtsurf(1:ngrid)=zdtsurf(1:ngrid)+lw_ch4*zdqsch4fast(1:ngrid)/capcal(1:ngrid) 1272 1274 end if 1273 1275 ! ------------------------------------------------------------------ 1274 1276 ! CO surface sublimation and condensation in fast model (nogcm) … … 1361 1363 endif 1362 1364 1363 zdqc(:,:,:)=0.1364 zdqsc(:,:)=0.1365 1365 call condense_n2(ngrid,nlayer,nq,ptimestep, & 1366 1366 capcal,pplay,pplev,tsurf,pt, & … … 1497 1497 zdqphot_ch4(:,:) = 0. 1498 1498 pdqmufi_prod(:,:,:) = 0. 1499 call hazecloud(ngrid,nlayer,nq,ptimestep, 1499 call hazecloud(ngrid,nlayer,nq,ptimestep,zday, & 1500 1500 pplay,pplev,pq,pdq,dist_star,mu0,zfluxuv,pdqmufi_prod, & 1501 1501 zdqphot_prec,zdqphot_ch4,zdqconv_prec,declin) … … 1520 1520 zdqhaze(:,:,i_haze)=(profmmr(:,:)-pq(:,:,igcm_haze))/ptimestep 1521 1521 else 1522 call hazecloud(ngrid,nlayer,nq,ptimestep, 1522 call hazecloud(ngrid,nlayer,nq,ptimestep,zday, & 1523 1523 pplay,pplev,pq,pdq,dist_star,mu0,zfluxuv,zdqhaze, & 1524 1524 zdqphot_prec,zdqphot_ch4,zdqconv_prec,declin)
Note: See TracChangeset
for help on using the changeset viewer.