Changeset 2597


Ignore:
Timestamp:
Dec 17, 2021, 10:28:22 AM (3 years ago)
Author:
emillour
Message:

Mars GCM:
Move "zls" (solar longitude) from being a local variable of physiq
to module comsaison_h. This is for convenience (saving zls and making
it available to the "plasma dynamical core").
Also cleaned up and commented comsaison_h in the process.
JYC+EM

Location:
trunk/LMDZ.MARS
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/README

    r2594 r2597  
    35493549- missing rho at launch altitude
    35503550- changed inputs, because R and Cp are needed to compute rho and BV
     3551
     3552== 17/12/2021 == JYC+EM
     3553Move "zls" (solar longitude) from being a local variable of physiq
     3554to module comsaison_h. This is for convenience (saving zls and making
     3555it available to the "plasma dynamical core").
     3556Also cleaned up and commented comsaison_h in the process.
     3557
  • trunk/LMDZ.MARS/libf/phymars/comsaison_h.F90

    r2578 r2597  
    33implicit none
    44
    5   logical,save :: callsais
    6   integer,save :: isaison
    7   real,save :: dist_sol
    8   real,save :: declin
    9   real,save,allocatable :: mu0(:)
    10   real,save,allocatable :: fract(:)
     5  real,save :: dist_sol ! Sun-Mars distance (AU)
     6  real,save :: declin ! declination (rad)
     7  real,save :: zls ! solar longitude (rad)
     8  real,save,allocatable :: mu0(:) ! cosine of solar zenith angle
     9  real,save,allocatable :: fract(:) ! day fraction over the time interval (0: night, 1: day)
    1110  real,save,allocatable :: local_time(:) ! local solar time as fraction of day (0,1)
    1211
    13 !$OMP THREADPRIVATE(callsais,isaison,dist_sol,declin,mu0,fract,local_time)
     12!$OMP THREADPRIVATE(dist_sol,declin,zls,mu0,fract,local_time)
    1413
    1514contains
  • trunk/LMDZ.MARS/libf/phymars/physiq_mod.F

    r2594 r2597  
    5454     &                     capcal, fluxgrd, qsurf,
    5555     &                     hmons,summit,base,watercap,watercaptag
    56       use comsaison_h, only: dist_sol, declin, mu0, fract, local_time
     56      use comsaison_h, only: dist_sol, declin, zls,
     57     &                       mu0, fract, local_time
    5758      use slope_mod, only: theta_sl, psi_sl
    5859      use conc_mod, only: rnew, cpnew, mmean
     
    316317      REAL tau(ngrid,naerkind)     ! Column dust optical depth at each point
    317318                                   ! AS: TBD: this one should be in a module !
    318       REAL zls                       !  solar longitude (rad)
    319319      REAL zday                      ! date (time since Ls=0, in martian days)
    320320      REAL zzlay(ngrid,nlayer)     ! altitude at the middle of the layers
Note: See TracChangeset for help on using the changeset viewer.