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

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.