source: trunk/LMDZ.COMMON/libf/evolution/recomp_orb_param_mod.F90 @ 2850

Last change on this file since 2850 was 2849, checked in by llange, 3 years ago

PEM
Update the codes for subsurface evolution to run with XIOS
1) Water density at the surface and in the soil is now read in the XIOS file
2) Reshape routine created as XIOS output have one element less in the longitude grid
3) The ice table is now computed using these water densities
4) Minor fixs in the main, adsorption module, and tendencies evolutions

LL

File size: 2.7 KB
Line 
1      MODULE recomp_orb_param_mod
2
3      IMPLICIT NONE
4
5      CONTAINS
6
7      SUBROUTINE recomp_orb_param(final_iter)
8
9      USE temps_mod_evol, ONLY: year_bp_ini, year_PEM
10#ifndef CPP_STD     
11      USE comconst_mod, ONLY: pi
12      USE planete_h, ONLY: e_elips, obliquit, timeperi
13#else
14      use planete_mod, only: e_elips, obliquit, timeperi
15      USE comcstfi_mod, only: pi
16
17#endif
18
19      USE lask_param_mod, only: yearlask,oblask,exlask,lsplask, &
20                                end_lask_param_mod,last_ilask
21
22      IMPLICIT NONE
23
24!--------------------------------------------------------
25! Input Variables
26!--------------------------------------------------------
27
28      integer,intent(in) :: final_iter ! Number of year iteration of the PEM
29
30!--------------------------------------------------------
31! Output Variables
32!--------------------------------------------------------
33
34!--------------------------------------------------------
35! Local variables
36!--------------------------------------------------------
37
38      real :: Year                      ! Year of the simulation
39      real :: timeperi_ls               ! time of peri in ls
40      integer ilask                     ! Loop variable
41
42
43      ! **********************************************************************
44      ! 0. Initializations
45      ! **********************************************************************
46
47
48          Year=year_bp_ini+year_PEM+final_iter
49
50          timeperi_ls=timeperi*360/2/pi
51
52!          Year=-953200
53          print *, "recomp_orb_param, Old year=", year_bp_ini+year_PEM
54          print *, "recomp_orb_param, New year=", Year
55          print *, "recomp_orb_param, Old obl=", obliquit
56          print *, "recomp_orb_param, Old ex=", e_elips
57          print *, "recomp_orb_param, Old lsp=", timeperi_ls
58          print *, "recomp_orb_param, Old timeperi=", timeperi
59
60        do ilask=last_ilask,1,-1
61           if(yearlask(ilask) .GT.Year) then
62              obliquit=oblask(ilask+1)+(oblask(ilask)-oblask(ilask+1))*(Year-yearlask(ilask+1))/(yearlask(ilask)-yearlask(ilask+1))
63              e_elips=exlask(ilask+1)+(exlask(ilask)-exlask(ilask+1))*(Year-yearlask(ilask+1))/(yearlask(ilask)-yearlask(ilask+1))
64              timeperi_ls=lsplask(ilask+1)+(lsplask(ilask)-lsplask(ilask+1))*(Year-yearlask(ilask+1))/(yearlask(ilask)-yearlask(ilask+1))
65              exit
66           endif
67        enddo
68        timeperi=timeperi_ls*2*pi/360
69
70       print *, "recomp_orb_param, Final year of the PEM run:", Year
71       print *, "recomp_orb_param, New obl=", obliquit
72       print *, "recomp_orb_param, New ex=", e_elips
73       print *, "recomp_orb_param, New timeperi=", timeperi
74
75      END SUBROUTINE recomp_orb_param
76
77!********************************************************************************   
78     
79      END MODULE recomp_orb_param_mod
Note: See TracBrowser for help on using the repository browser.