Changeset 3585 for trunk/LMDZ.PLUTO/libf/phypluto/physiq_mod.F90
- Timestamp:
- Jan 20, 2025, 10:17:54 AM (12 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.PLUTO/libf/phypluto/physiq_mod.F90
r3572 r3585 21 21 use radcommon_h, only: sigma, glat, grav, BWNV, WNOI, DWNI, DWNV, WNOV 22 22 use suaer_corrk_mod, only: suaer_corrk 23 use radii_mod, only: su_aer_radii,haze_reffrad_fix24 23 use aerosol_mod, only: i_haze, haze_prof 25 24 use surfdat_h, only: phisfi, zmea, zstd, zsig, zgam, zthe, & … … 35 34 igcm_co_gas,igcm_co_ice,igcm_prec_haze,lw_n2,lw_ch4,lw_co,& 36 35 alpha_lift, alpha_devil, qextrhor, & 37 nesp, is_chim , is_condensable36 nesp, is_chim 38 37 use time_phylmdz_mod, only: ecritphy, iphysiq, nday 39 38 use phyetat0_mod, only: phyetat0,tab_cntrl_mod … … 286 285 ! for the "naerkind" optically active aerosols: 287 286 288 real,save,allocatable :: aerosol(:,:,:) ! Aerosols289 !$OMP THREADPRIVATE( aerosol)287 real,save,allocatable :: dtau_aer(:,:,:) ! Aerosols 288 !$OMP THREADPRIVATE(dtau_aer) 290 289 real zh(ngrid,nlayer) ! Potential temperature (K). 291 290 real pw(ngrid,nlayer) ! Vertical velocity (m/s). (NOTE : >0 WHEN DOWNWARDS !!) … … 464 463 real muvar(ngrid,nlayer+1) ! For Runaway Greenhouse 1D study. By RW 465 464 466 real,save,allocatable :: reffcol(:,:)467 !$OMP THREADPRIVATE(reffcol)468 469 465 ! Non-oro GW tendencies 470 466 REAL d_u_hin(ngrid,nlayer), d_v_hin(ngrid,nlayer) … … 535 531 ! allocate related local arrays 536 532 ! (need be allocated instead of automatic because of "naerkind") 537 allocate(aerosol(ngrid,nlayer,naerkind)) 538 allocate(reffcol(ngrid,naerkind)) 533 allocate(dtau_aer(ngrid,nlayer,naerkind)) 539 534 540 535 #ifdef CPP_XIOS … … 1022 1017 if (oldplutocorrk) then 1023 1018 call callcorrk_pluto(icount,ngrid,nlayer,pq,nq,qsurf, & 1024 albedo(:,1),emis,mu0,pplev,pplay,pt, 1025 zzlay, tsurf,fract,dist_star,aerosol,&1019 albedo(:,1),emis,mu0,pplev,pplay,pt, & 1020 zzlay,zzlev,tsurf,fract,dist_star,dtau_aer, & 1026 1021 zdtlw,zdtsw,fluxsurf_lw,fluxsurf_sw,fluxtop_lw, & 1027 1022 fluxabs_sw,fluxtop_dn,reffrad,tau_col,ptime,pday, & … … 1034 1029 call callcorrk(ngrid,nlayer,pq,nq,qsurf, & 1035 1030 albedo,albedo_equivalent,emis,mu0,pplev,pplay,pt, & 1036 zzlay, tsurf,fract,dist_star,aerosol,muvar,&1031 zzlay,zzlev,tsurf,fract,dist_star,dtau_aer,muvar, & 1037 1032 zdtlw,zdtsw,fluxsurf_lw,fluxsurf_sw, & 1038 1033 fluxsurfabs_sw,fluxtop_lw, & … … 1436 1431 zdqch4cloud(:,:,:)=0. 1437 1432 if ((methane).and.(metcloud).and.(.not.fast)) THEN 1438 call ch4cloud(ngrid,nlayer, naerkind,ptimestep, &1433 call ch4cloud(ngrid,nlayer,ptimestep, & 1439 1434 pplev,pplay,pdpsrf,zzlev,zzlay, pt,pdt, & 1440 1435 pq,pdq,zdqch4cloud,zdqsch4cloud,zdtch4cloud, & … … 1469 1464 zdqcocloud(:,:,:)=0. 1470 1465 IF ((carbox).and.(monoxcloud).and.(.not.fast)) THEN 1471 call cocloud(ngrid,nlayer, naerkind,ptimestep, &1466 call cocloud(ngrid,nlayer,ptimestep, & 1472 1467 pplev,pplay,pdpsrf,zzlev,zzlay, pt,pdt, & 1473 1468 pq,pdq,zdqcocloud,zdqscocloud,zdtcocloud, & … … 1845 1840 print*,'fluxtop_dn=',fluxtop_dn(ig) 1846 1841 print*,'tau_col=',tau_col(ig) 1847 print*,' aerosol=',aerosol(ig,:,:)1842 print*,'dtau_aer=',dtau_aer(ig,:,:) 1848 1843 print*,'temp= ',pt(ig,:) 1849 1844 print*,'pplay= ',pplay(ig,:)
Note: See TracChangeset
for help on using the changeset viewer.