Ignore:
Timestamp:
Sep 12, 2023, 11:41:22 AM (15 months ago)
Author:
jbclement
Message:

Mars PCM:
The variable 'timeperi' (defined in "planete_h.F90" and computed in "iniorbit.F") is renamed into 'lsperi' and thus slightly changed to be coherent to the solar longitude of perihelion in radian. It can now be used out of the box by other subroutines/programs like the PEM.
JBC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/orbite.F

    r1368 r3040  
    11      SUBROUTINE orbite(pls,pdist_sol,pdecli)
    2       USE planete_h, ONLY: e_elips, p_elips, obliquit, timeperi
     2      USE planete_h, ONLY: e_elips, p_elips, obliquit, lsperi
    33      USE comcstfi_h, ONLY: pi
    44      IMPLICIT NONE
     
    1919c   -------
    2020c   pdist_sol     Distance Sun-Planet in UA
    21 c   pdecli        declinaison ( in radians )
     21c   pdecli        Declinaison ( in radians )
    2222c
    2323c=======================================================================
     
    2626c ----------
    2727
    28       REAL,INTENT(IN) :: pls
    29       REAL,INTENT(OUT) :: pdist_sol,pdecli
     28      REAL,INTENT(IN)  :: pls
     29      REAL,INTENT(OUT) :: pdist_sol, pdecli
    3030
    3131c-----------------------------------------------------------------------
    3232
    3333c Distance Sun-Planet
    34 
    35       pdist_sol=p_elips/(1.+e_elips*cos(pls+timeperi))
     34      pdist_sol = p_elips/(1.+e_elips*cos(pls-lsperi))
    3635
    3736c Solar declination
    38 
    39       pdecli= asin (sin(pls)*sin(obliquit*pi/180.))
     37      pdecli = asin(sin(pls)*sin(obliquit*pi/180.))
    4038
    4139      END
Note: See TracChangeset for help on using the changeset viewer.