1 | ! |
---|
2 | !$Id: physics_distribution_mod.F90 3848 2021-02-18 10:23:57Z fairhead $ |
---|
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 | ! USE infotrac, ONLY : type_trac |
---|
16 | #ifdef REPROBUS |
---|
17 | USE CHEM_REP, ONLY : Init_chem_rep_phys |
---|
18 | #endif |
---|
19 | |
---|
20 | IMPLICIT NONE |
---|
21 | INTEGER,INTENT(IN) :: grid_type |
---|
22 | INTEGER,INTENT(IN) :: nvertex |
---|
23 | INTEGER,INTENT(IN) :: nbp |
---|
24 | INTEGER,INTENT(IN) :: nbp_lon |
---|
25 | INTEGER,INTENT(IN) :: nbp_lat |
---|
26 | INTEGER,INTENT(IN) :: nbp_lev |
---|
27 | INTEGER,INTENT(IN) :: communicator |
---|
28 | |
---|
29 | |
---|
30 | |
---|
31 | CALL init_grid_phy_lmdz(grid_type,nvertex, nbp_lon,nbp_lat,nbp_lev) |
---|
32 | CALL init_phys_lmdz_para(nbp,nbp_lon, nbp_lat,nbp_lev, grid_type,nvertex, communicator) |
---|
33 | !$OMP PARALLEL |
---|
34 | CALL init_dimphy(klon_omp,nbp_lev) |
---|
35 | |
---|
36 | |
---|
37 | ! IF (type_trac == 'inca') THEN |
---|
38 | #ifdef INCA |
---|
39 | CALL Init_inca_dim(klon_omp,nbp_lev) |
---|
40 | #endif |
---|
41 | ! END IF |
---|
42 | |
---|
43 | ! Initialization of Reprobus |
---|
44 | ! IF (type_trac == 'repr') THEN |
---|
45 | #ifdef REPROBUS |
---|
46 | CALL Init_chem_rep_phys(klon_omp,nbp_lev) |
---|
47 | #endif |
---|
48 | ! END IF |
---|
49 | |
---|
50 | !$OMP END PARALLEL |
---|
51 | |
---|
52 | END SUBROUTINE init_physics_distribution |
---|
53 | |
---|
54 | !SUBROUTINE Init_Phys_lmdz(iim,jjp1,llm,nb_proc,distrib) |
---|
55 | ! USE mod_phys_lmdz_para, ONLY: Init_phys_lmdz_para!, klon_omp |
---|
56 | ! USE mod_grid_phy_lmdz, ONLY: Init_grid_phy_lmdz!, nbp_lev |
---|
57 | ! USE dimphy, ONLY : Init_dimphy |
---|
58 | ! USE infotrac_phy, ONLY : type_trac |
---|
59 | !#ifdef REPROBUS |
---|
60 | ! USE CHEM_REP, ONLY : Init_chem_rep_phys |
---|
61 | !#endif |
---|
62 | |
---|
63 | ! IMPLICIT NONE |
---|
64 | |
---|
65 | ! INTEGER,INTENT(in) :: iim |
---|
66 | ! INTEGER,INTENT(in) :: jjp1 |
---|
67 | ! INTEGER,INTENT(in) :: llm |
---|
68 | ! INTEGER,INTENT(in) :: nb_proc |
---|
69 | ! INTEGER,INTENT(in) :: distrib(0:nb_proc-1) |
---|
70 | |
---|
71 | |
---|
72 | ! CALL Init_grid_phy_lmdz(iim,jjp1,llm) |
---|
73 | ! CALL Init_phys_lmdz_para(iim,jjp1,nb_proc,distrib) |
---|
74 | !!$OMP PARALLEL |
---|
75 | ! CALL Init_dimphy(klon_omp,nbp_lev) |
---|
76 | ! |
---|
77 | !! Initialization of Reprobus |
---|
78 | ! IF (type_trac == 'repr') THEN |
---|
79 | !#ifdef REPROBUS |
---|
80 | ! CALL Init_chem_rep_phys(klon_omp,nbp_lev) |
---|
81 | !#endif |
---|
82 | ! END IF |
---|
83 | ! |
---|
84 | !!$OMP END PARALLEL |
---|
85 | |
---|
86 | !END SUBROUTINE Init_Phys_lmdz |
---|
87 | |
---|
88 | |
---|
89 | |
---|
90 | |
---|
91 | |
---|
92 | |
---|
93 | |
---|
94 | |
---|
95 | END MODULE physics_distribution_mod |
---|
96 | |
---|