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

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

Mars GCM:
Some cleanup in orbit.F
EM

File size: 939 bytes
Line 
1      SUBROUTINE orbite(pls,pdist_sol,pdecli)
2      USE planete_h, ONLY: e_elips, p_elips, obliquit, timeperi
3      USE comcstfi_h, ONLY: pi
4      IMPLICIT NONE
5
6c=======================================================================
7c
8c   Compute distance to Sun and declination as a function of the solar
9c   longitude Ls
10c
11c   Arguments:
12c   ----------
13c
14c   Input:
15c   ------
16c   pls          Ls (radians)
17c
18c   Output:
19c   -------
20c   pdist_sol     Distance Sun-Planet in UA
21c   pdecli        declinaison ( in radians )
22c
23c=======================================================================
24
25c arguments:
26c ----------
27
28      REAL,INTENT(IN) :: pls
29      REAL,INTENT(OUT) :: pdist_sol,pdecli
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.