source: LMDZ6/branches/Portage_acc/libf/dyn3d_common/conf_planete.F90 @ 4447

Last change on this file since 4447 was 4446, checked in by Laurent Fairhead, 16 months ago

Merged trunk revisions from 4127 to 4443 (HEAD) into branch

  • Property copyright set to
    Name of program: LMDZ
    Creation date: 1984
    Version: LMDZ5
    License: CeCILL version 2
    Holder: Laboratoire de m\'et\'eorologie dynamique, CNRS, UMR 8539
    See the license file in the root directory
File size: 1.7 KB
RevLine 
[1437]1!
2! $Id$
3!
4SUBROUTINE conf_planete
5!
6#ifdef CPP_IOIPSL
7USE IOIPSL
8#else
9! if not using IOIPSL, we still need to use (a local version of) getin
10USE ioipsl_getincom
11#endif
[2597]12USE comconst_mod, ONLY: pi, g, molmass, kappa, cpp, omeg, rad, &
13                        year_day, daylen, daysec, ihf
[2600]14USE comvert_mod, ONLY: preff, pa
[1437]15IMPLICIT NONE
16!
17!
18!   Declarations :
19!   --------------
[2600]20
[1437]21!
22!   local:
23!   ------
24
25! ---------------------------------------------
26! Initialisations de constantes de la dynamique
27! ---------------------------------------------
28! Pi
29pi=2.*asin(1.)
30
31!Reference surface pressure (Pa)
[4446]32! 101080 : specific value for CMIP5 aqua/terra planets
33! "Specify the initial dry mass to be equivalent to
34!  a global mean surface pressure (101325 minus 245) Pa."
35preff=101080.
[1437]36CALL getin('preff', preff)
[4446]37
[1437]38! Reference pressure at which hybrid coord. become purely pressure
39! pa=50000.
40pa=preff/2.
41CALL getin('pa', pa)
[4446]42
[1437]43! Gravity
44g=9.80665
[4446]45
[1437]46CALL getin('g',g)
47! Molar mass of the atmosphere
[4446]48
[1437]49molmass = 28.9644
50CALL getin('molmass',molmass)
51! kappa=R/Cp et Cp     
[4446]52
[1437]53kappa = 2./7.
54CALL getin('kappa',kappa)
[4446]55
[1437]56cpp=8.3145/molmass/kappa*1000.
57CALL getin('cpp',cpp)
58! Radius of the planet
[4446]59
[1437]60rad = 6371229.
61CALL getin('radius',rad)
[4446]62
[1437]63! Length of a standard day (s)
64daysec=86400.
65CALL getin('daysec',daysec)
[4446]66
[1437]67! Rotation rate of the planet:
68! Length of a solar day, in standard days
69daylen = 1.
[4446]70
[1437]71CALL getin('daylen',daylen)
72! Number of days (standard) per year:
[4446]73
[1437]74year_day = 365.25
75CALL getin('year_day',year_day)
76! Omega
77! omeg=2.*pi/86400.
[4446]78
[1437]79omeg=2.*pi/daysec*(1./daylen+1./year_day)
80CALL getin('omeg',omeg)
81
[1505]82! Intrinsic heat flux (default: none) (only used if planet_type="giant")
83ihf = 0.
84call getin('ihf',ihf)
85
[1437]86END SUBROUTINE conf_planete
Note: See TracBrowser for help on using the repository browser.