source: trunk/LMDZ.MARS/libf/phymars/orbite.F @ 3026

Last change on this file since 3026 was 1368, checked in by emillour, 10 years ago

Mars GCM:
Some cleanup in orbit.F
EM

File size: 939 bytes
RevLine 
[38]1      SUBROUTINE orbite(pls,pdist_sol,pdecli)
[1368]2      USE planete_h, ONLY: e_elips, p_elips, obliquit, timeperi
3      USE comcstfi_h, ONLY: pi
[38]4      IMPLICIT NONE
5
6c=======================================================================
7c
[1368]8c   Compute distance to Sun and declination as a function of the solar
[38]9c   longitude Ls
10c
11c   Arguments:
12c   ----------
13c
14c   Input:
15c   ------
[1368]16c   pls          Ls (radians)
[38]17c
18c   Output:
19c   -------
20c   pdist_sol     Distance Sun-Planet in UA
[1368]21c   pdecli        declinaison ( in radians )
[38]22c
23c=======================================================================
24
25c arguments:
26c ----------
27
[1368]28      REAL,INTENT(IN) :: pls
29      REAL,INTENT(OUT) :: pdist_sol,pdecli
[38]30
31c-----------------------------------------------------------------------
32
33c Distance Sun-Planet
34
35      pdist_sol=p_elips/(1.+e_elips*cos(pls+timeperi))
36
37c Solar declination
38
39      pdecli= asin (sin(pls)*sin(obliquit*pi/180.))
40
41      END
Note: See TracBrowser for help on using the repository browser.