Changeset 3674


Ignore:
Timestamp:
Mar 10, 2025, 2:49:16 PM (3 months ago)
Author:
tbertrand
Message:

Pluto: small fix in hazecloud to get the anti-solar longitude when running in parallel
TB

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, &
    22          pplay,pplev,pq,pdq,pdist_sol,mu0,pfluxuv,zdqhaze, &
    33          zdqphot_prec,zdqphot_ch4,zdqconv_prec,declin)
     
    4949      DATA firstcall/.true./
    5050      REAL ptimestep
     51      REAL zday
    5152      REAL pplay(ngrid,nlayer),pplev(ngrid,nlayer+1)
    5253      REAL,INTENT(IN) :: pq(ngrid,nlayer,nq)
     
    124125      ELSE
    125126!     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
    131130        ENDIF
    132131        latit=-declin                                        ! rad
    133 
    134132!     2) Define input parameter for the fit
    135133        valmin=48.74e10    ! minimum value of ipm flux in ph/m2/s
  • trunk/LMDZ.PLUTO/libf/phypluto/physiq_mod.F90

    r3642 r3674  
    518518         zdtsw(:,:) = 0.0
    519519         zdtlw(:,:) = 0.0
     520         zdqc(:,:,:)=0.
     521         zdqsc(:,:)=0.
    520522
    521523!        Initialize tracer names, indexes and properties.
     
    12701272                                         zdqch4fast(1:ngrid)
    12711273            zdtsurf(1:ngrid)=zdtsurf(1:ngrid)+lw_ch4*zdqsch4fast(1:ngrid)/capcal(1:ngrid)
    1272             end if
     1274         end if
    12731275!        ------------------------------------------------------------------
    12741276!        CO surface sublimation and condensation in fast model (nogcm)
     
    13611363         endif
    13621364
    1363          zdqc(:,:,:)=0.
    1364          zdqsc(:,:)=0.
    13651365         call condense_n2(ngrid,nlayer,nq,ptimestep,                    &
    13661366                           capcal,pplay,pplev,tsurf,pt,                 &
     
    14971497               zdqphot_ch4(:,:)    = 0.
    14981498               pdqmufi_prod(:,:,:) = 0.
    1499                call hazecloud(ngrid,nlayer,nq,ptimestep,                             &
     1499               call hazecloud(ngrid,nlayer,nq,ptimestep,zday,                        &
    15001500                              pplay,pplev,pq,pdq,dist_star,mu0,zfluxuv,pdqmufi_prod, &
    15011501                              zdqphot_prec,zdqphot_ch4,zdqconv_prec,declin)
     
    15201520                  zdqhaze(:,:,i_haze)=(profmmr(:,:)-pq(:,:,igcm_haze))/ptimestep
    15211521               else
    1522                   call hazecloud(ngrid,nlayer,nq,ptimestep,            &
     1522                  call hazecloud(ngrid,nlayer,nq,ptimestep,zday,       &
    15231523                     pplay,pplev,pq,pdq,dist_star,mu0,zfluxuv,zdqhaze, &
    15241524                     zdqphot_prec,zdqphot_ch4,zdqconv_prec,declin)
Note: See TracChangeset for help on using the changeset viewer.