source: trunk/LMDZ.PLUTO/libf/phypluto/planete_mod.F90 @ 3586

Last change on this file since 3586 was 3539, checked in by tbertrand, 8 weeks ago

LMDZ.PLUTO:
Update and Validation of the Volatile Transport Model (VTM, or "nogcm")
Merging missing elements with Pluto.old
TB

File size: 1.6 KB
Line 
1MODULE planete_mod
2  IMPLICIT NONE
3 
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 :: z0 ! surface roughness (m)
11  REAL,SAVE :: lmixmin ! mixing length
12  REAL,SAVE :: emin_turb ! minimal energy
13!$OMP THREADPRIVATE(z0,lmixmin,emin_turb)
14  REAL,SAVE :: coefvis
15  REAL,SAVE :: coefir
16  REAL,SAVE :: timeperi
17  REAL,SAVE :: e_elips
18  REAL,SAVE :: p_elips
19!$OMP THREADPRIVATE(coefvis,coefir,timeperi,e_elips,p_elips)
20  !Pluto specific
21  REAL,SAVE :: tpal
22  REAL,SAVE :: adjust
23!$OMP THREADPRIVATE(tpal,adjust)
24
25 
26  REAL,SAVE :: preff ! reference surface pressure (Pa)  !read by master
27  REAL,SAVE,ALLOCATABLE :: ap(:) ! hybrid coordinate at layer interface !read by master
28  REAL,SAVE,ALLOCATABLE :: bp(:) ! hybrid coordinate at layer interface         !read by master
29!$OMP THREADPRIVATE(preff,ap,bp)
30
31  CONTAINS
32 
33  subroutine ini_planete_mod(nlayer,preff_dyn,ap_dyn,bp_dyn)
34 
35  implicit none
36  integer,intent(in) :: nlayer ! number of atmospheric layers
37  real,intent(in) :: preff_dyn ! reference surface pressure (Pa)
38  real,intent(in) :: ap_dyn(nlayer+1) ! hybrid coordinate at interfaces
39  real,intent(in) :: bp_dyn(nlayer+1) ! hybrid coordinate at interfaces
40 
41  allocate(ap(nlayer+1))
42  allocate(bp(nlayer+1))
43 
44  preff=preff_dyn
45  ap(:)=ap_dyn(:)
46  bp(:)=bp_dyn(:)
47 
48  end subroutine ini_planete_mod
49 
50END MODULE planete_mod
Note: See TracBrowser for help on using the repository browser.