1 | MODULE physics_distribution_mod |
---|
2 | |
---|
3 | |
---|
4 | CONTAINS |
---|
5 | |
---|
6 | SUBROUTINE init_physics_distribution(grid_type, nvertex, nbp, nbp_lon, nbp_lat, nbp_lev, communicator) |
---|
7 | USE mod_phys_lmdz_para, ONLY: init_phys_lmdz_para, klon_omp |
---|
8 | USE mod_grid_phy_lmdz, ONLY: init_grid_phy_lmdz |
---|
9 | USE dimphy, ONLY : Init_dimphy |
---|
10 | USE infotrac_phy, ONLY : type_trac |
---|
11 | #ifdef REPROBUS |
---|
12 | USE CHEM_REP, ONLY : Init_chem_rep_phys |
---|
13 | #endif |
---|
14 | |
---|
15 | IMPLICIT NONE |
---|
16 | INTEGER,INTENT(IN) :: grid_type |
---|
17 | INTEGER,INTENT(IN) :: nvertex |
---|
18 | INTEGER,INTENT(IN) :: nbp |
---|
19 | INTEGER,INTENT(IN) :: nbp_lon |
---|
20 | INTEGER,INTENT(IN) :: nbp_lat |
---|
21 | INTEGER,INTENT(IN) :: nbp_lev |
---|
22 | INTEGER,INTENT(IN) :: communicator |
---|
23 | |
---|
24 | |
---|
25 | CALL init_grid_phy_lmdz(grid_type,nvertex, nbp_lon,nbp_lat,nbp_lev) |
---|
26 | CALL init_phys_lmdz_para(nbp,nbp_lon, nbp_lat, communicator) |
---|
27 | !$OMP PARALLEL |
---|
28 | CALL init_dimphy(klon_omp,nbp_lev) |
---|
29 | |
---|
30 | ! Initialization of Reprobus |
---|
31 | IF (type_trac == 'repr') THEN |
---|
32 | #ifdef REPROBUS |
---|
33 | CALL Init_chem_rep_phys(klon_omp,nbp_lev) |
---|
34 | #endif |
---|
35 | END IF |
---|
36 | |
---|
37 | !$OMP END PARALLEL |
---|
38 | |
---|
39 | END SUBROUTINE init_physics_distribution |
---|
40 | |
---|
41 | |
---|
42 | |
---|
43 | |
---|
44 | |
---|
45 | |
---|
46 | |
---|
47 | END MODULE physics_distribution_mod |
---|