1 | ! |
---|
2 | !$Id: physics_distribution_mod.F90 2351 2015-08-25 15:14:59Z emillour $ |
---|
3 | ! |
---|
4 | MODULE physics_distribution_mod |
---|
5 | |
---|
6 | |
---|
7 | CONTAINS |
---|
8 | |
---|
9 | SUBROUTINE init_physics_distribution(grid_type, nvertex, & |
---|
10 | nbp, nbp_lon, nbp_lat, nbp_lev, & |
---|
11 | communicator) |
---|
12 | USE mod_phys_lmdz_para, ONLY: init_phys_lmdz_para, klon_omp |
---|
13 | USE mod_grid_phy_lmdz, ONLY: init_grid_phy_lmdz |
---|
14 | USE dimphy, ONLY : Init_dimphy |
---|
15 | |
---|
16 | IMPLICIT NONE |
---|
17 | INTEGER,INTENT(IN) :: grid_type |
---|
18 | INTEGER,INTENT(IN) :: nvertex |
---|
19 | INTEGER,INTENT(IN) :: nbp |
---|
20 | INTEGER,INTENT(IN) :: nbp_lon |
---|
21 | INTEGER,INTENT(IN) :: nbp_lat |
---|
22 | INTEGER,INTENT(IN) :: nbp_lev |
---|
23 | INTEGER,INTENT(IN) :: communicator |
---|
24 | |
---|
25 | |
---|
26 | CALL init_grid_phy_lmdz(grid_type,nvertex, nbp_lon,nbp_lat,nbp_lev) |
---|
27 | CALL init_phys_lmdz_para(nbp,nbp_lon, nbp_lat, communicator) |
---|
28 | !$OMP PARALLEL |
---|
29 | CALL init_dimphy(klon_omp,nbp_lev) |
---|
30 | !$OMP END PARALLEL |
---|
31 | |
---|
32 | END SUBROUTINE init_physics_distribution |
---|
33 | |
---|
34 | !SUBROUTINE Init_Phys_lmdz(iim,jjp1,llm,nb_proc,distrib) |
---|
35 | ! USE mod_phys_lmdz_para, ONLY: Init_phys_lmdz_para!, klon_omp |
---|
36 | ! USE mod_grid_phy_lmdz, ONLY: Init_grid_phy_lmdz!, nbp_lev |
---|
37 | ! USE dimphy, ONLY : Init_dimphy |
---|
38 | ! USE infotrac_phy, ONLY : type_trac |
---|
39 | !#ifdef REPROBUS |
---|
40 | ! USE CHEM_REP, ONLY : Init_chem_rep_phys |
---|
41 | !#endif |
---|
42 | |
---|
43 | ! IMPLICIT NONE |
---|
44 | |
---|
45 | ! INTEGER,INTENT(in) :: iim |
---|
46 | ! INTEGER,INTENT(in) :: jjp1 |
---|
47 | ! INTEGER,INTENT(in) :: llm |
---|
48 | ! INTEGER,INTENT(in) :: nb_proc |
---|
49 | ! INTEGER,INTENT(in) :: distrib(0:nb_proc-1) |
---|
50 | |
---|
51 | |
---|
52 | ! CALL Init_grid_phy_lmdz(iim,jjp1,llm) |
---|
53 | ! CALL Init_phys_lmdz_para(iim,jjp1,nb_proc,distrib) |
---|
54 | !!$OMP PARALLEL |
---|
55 | ! CALL Init_dimphy(klon_omp,nbp_lev) |
---|
56 | ! |
---|
57 | !! Initialization of Reprobus |
---|
58 | ! IF (type_trac == 'repr') THEN |
---|
59 | !#ifdef REPROBUS |
---|
60 | ! CALL Init_chem_rep_phys(klon_omp,nbp_lev) |
---|
61 | !#endif |
---|
62 | ! END IF |
---|
63 | ! |
---|
64 | !!$OMP END PARALLEL |
---|
65 | |
---|
66 | !END SUBROUTINE Init_Phys_lmdz |
---|
67 | |
---|
68 | |
---|
69 | |
---|
70 | |
---|
71 | |
---|
72 | |
---|
73 | |
---|
74 | |
---|
75 | END MODULE physics_distribution_mod |
---|
76 | |
---|