source: trunk/LMDZ.GENERIC/libf/phystd/planete_mod.F90 @ 3567

Last change on this file since 3567 was 3515, checked in by emillour, 7 weeks ago

Generic PCM:
Add a controle_descriptor to restartfi.nc file, describing contents of the
controle array stored therein. Remove obsolete unused variables "lmixmin"
and "emin_turb" in the process.
EM

File size: 1.5 KB
RevLine 
[1308]1MODULE planete_mod
2  IMPLICIT NONE
3 
[1520]4  REAL,SAVE :: apoastr ! maximum star-planet distance (AU)
5  REAL,SAVE :: periastr ! minimum star-planet distance (AU)
6  REAL,SAVE :: year_day ! length of year (sols)
7  REAL,SAVE :: peri_day ! date of periastron (sols since N. spring)
8  REAL,SAVE :: obliquit ! Obliquity of the planet (deg)
9!$OMP THREADPRIVATE(apoastr,periastr,year_day,peri_day,obliquit)
10  REAL,SAVE :: nres ! tidal resonance ratio
11  REAL,SAVE :: z0 ! surface roughness (m)
[3515]12!$OMP THREADPRIVATE(nres,z0)
[1520]13  REAL,SAVE :: coefvis
14  REAL,SAVE :: coefir
15  REAL,SAVE :: timeperi
16  REAL,SAVE :: e_elips
17  REAL,SAVE :: p_elips
18!$OMP THREADPRIVATE(coefvis,coefir,timeperi,e_elips,p_elips)
[1308]19 
[1520]20  REAL,SAVE :: preff ! reference surface pressure (Pa)  !read by master
21  REAL,SAVE,ALLOCATABLE :: ap(:) ! hybrid coordinate at layer interface !read by master
22  REAL,SAVE,ALLOCATABLE :: bp(:) ! hybrid coordinate at layer interface         !read by master
23!$OMP THREADPRIVATE(preff,ap,bp)
24
[1308]25  CONTAINS
26 
27  subroutine ini_planete_mod(nlayer,preff_dyn,ap_dyn,bp_dyn)
28 
29  implicit none
30  integer,intent(in) :: nlayer ! number of atmospheric layers
31  real,intent(in) :: preff_dyn ! reference surface pressure (Pa)
32  real,intent(in) :: ap_dyn(nlayer+1) ! hybrid coordinate at interfaces
33  real,intent(in) :: bp_dyn(nlayer+1) ! hybrid coordinate at interfaces
34 
35  allocate(ap(nlayer+1))
36  allocate(bp(nlayer+1))
37 
38  preff=preff_dyn
39  ap(:)=ap_dyn(:)
40  bp(:)=bp_dyn(:)
41 
42  end subroutine ini_planete_mod
43 
44END MODULE planete_mod
Note: See TracBrowser for help on using the repository browser.