Changeset 1368


Ignore:
Timestamp:
Nov 17, 2014, 10:14:16 AM (10 years ago)
Author:
emillour
Message:

Mars GCM:
Some cleanup in orbit.F
EM

File:
1 edited

Legend:

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

    r1233 r1368  
    11      SUBROUTINE orbite(pls,pdist_sol,pdecli)
    2       use planete_h
    3       USE comcstfi_h
     2      USE planete_h, ONLY: e_elips, p_elips, obliquit, timeperi
     3      USE comcstfi_h, ONLY: pi
    44      IMPLICIT NONE
    55
    66c=======================================================================
    77c
    8 c   Objet:
    9 c   ------
    10 c
    11 c   Distance from sun and declimation as a function of the solar
     8c   Compute distance to Sun and declination as a function of the solar
    129c   longitude Ls
    13 c
    14 c   Interface:
    15 c   ----------
    16 c
    17 c
    1810c
    1911c   Arguments:
     
    2214c   Input:
    2315c   ------
    24 c   pls          Ls
     16c   pls          Ls (radians)
    2517c
    2618c   Output:
    2719c   -------
    2820c   pdist_sol     Distance Sun-Planet in UA
    29 c   pdecli        declinaison ( en radians )
     21c   pdecli        declinaison ( in radians )
    3022c
    3123c=======================================================================
    32 c-----------------------------------------------------------------------
    33 c   Declarations:
    34 c   -------------
    3524
    3625c arguments:
    3726c ----------
    3827
    39       REAL pdist_sol,pdecli,pls,i
     28      REAL,INTENT(IN) :: pls
     29      REAL,INTENT(OUT) :: pdist_sol,pdecli
    4030
    4131c-----------------------------------------------------------------------
     
    4737c Solar declination
    4838
    49 c ********************* version before 01/01/2000 *******
    50 
    5139      pdecli= asin (sin(pls)*sin(obliquit*pi/180.))
    5240
    53 c ********************* version after 01/01/2000 *******
    54 c     i=obliquit*pi/180.
    55 c     pdecli=asin(sin(pls)*sin(i)/sqrt(sin(pls)**2+
    56 c    & cos(pls)**2*cos(i)**2))
    57 c ******************************************************
    58 
    59 
    60 
    61       RETURN
    6241      END
Note: See TracChangeset for help on using the changeset viewer.