[775] | 1 | ! |
---|
[2351] | 2 | !$Id: physics_distribution_mod.F90 3435 2019-01-22 15:21:59Z idelkadi $ |
---|
[775] | 3 | ! |
---|
[2351] | 4 | MODULE physics_distribution_mod |
---|
[1565] | 5 | |
---|
[2351] | 6 | |
---|
| 7 | CONTAINS |
---|
| 8 | |
---|
| 9 | SUBROUTINE init_physics_distribution(grid_type, nvertex, & |
---|
| 10 | nbp, nbp_lon, nbp_lat, nbp_lev, & |
---|
| 11 | communicator) |
---|
[3435] | 12 | USE mod_phys_lmdz_para, ONLY: init_phys_lmdz_para, klon_omp |
---|
[2351] | 13 | USE mod_grid_phy_lmdz, ONLY: init_grid_phy_lmdz |
---|
[3435] | 14 | USE dimphy, ONLY : Init_dimphy |
---|
| 15 | USE infotrac_phy, ONLY : type_trac |
---|
| 16 | #ifdef REPROBUS |
---|
| 17 | USE CHEM_REP, ONLY : Init_chem_rep_phys |
---|
| 18 | #endif |
---|
| 19 | |
---|
[775] | 20 | IMPLICIT NONE |
---|
[2351] | 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 | CALL init_grid_phy_lmdz(grid_type,nvertex, nbp_lon,nbp_lat,nbp_lev) |
---|
| 31 | CALL init_phys_lmdz_para(nbp,nbp_lon, nbp_lat, communicator) |
---|
[3435] | 32 | !$OMP PARALLEL |
---|
| 33 | CALL init_dimphy(klon_omp,nbp_lev) |
---|
[2351] | 34 | |
---|
[3435] | 35 | ! Initialization of Reprobus |
---|
| 36 | IF (type_trac == 'repr') THEN |
---|
| 37 | #ifdef REPROBUS |
---|
| 38 | CALL Init_chem_rep_phys(klon_omp,nbp_lev) |
---|
| 39 | #endif |
---|
| 40 | END IF |
---|
| 41 | |
---|
| 42 | !$OMP END PARALLEL |
---|
| 43 | |
---|
[2351] | 44 | END SUBROUTINE init_physics_distribution |
---|
| 45 | |
---|
| 46 | !SUBROUTINE Init_Phys_lmdz(iim,jjp1,llm,nb_proc,distrib) |
---|
| 47 | ! USE mod_phys_lmdz_para, ONLY: Init_phys_lmdz_para!, klon_omp |
---|
| 48 | ! USE mod_grid_phy_lmdz, ONLY: Init_grid_phy_lmdz!, nbp_lev |
---|
| 49 | ! USE dimphy, ONLY : Init_dimphy |
---|
| 50 | ! USE infotrac_phy, ONLY : type_trac |
---|
| 51 | !#ifdef REPROBUS |
---|
| 52 | ! USE CHEM_REP, ONLY : Init_chem_rep_phys |
---|
| 53 | !#endif |
---|
| 54 | |
---|
| 55 | ! IMPLICIT NONE |
---|
[775] | 56 | |
---|
[2351] | 57 | ! INTEGER,INTENT(in) :: iim |
---|
| 58 | ! INTEGER,INTENT(in) :: jjp1 |
---|
| 59 | ! INTEGER,INTENT(in) :: llm |
---|
| 60 | ! INTEGER,INTENT(in) :: nb_proc |
---|
| 61 | ! INTEGER,INTENT(in) :: distrib(0:nb_proc-1) |
---|
[775] | 62 | |
---|
| 63 | |
---|
[2351] | 64 | ! CALL Init_grid_phy_lmdz(iim,jjp1,llm) |
---|
| 65 | ! CALL Init_phys_lmdz_para(iim,jjp1,nb_proc,distrib) |
---|
| 66 | !!$OMP PARALLEL |
---|
| 67 | ! CALL Init_dimphy(klon_omp,nbp_lev) |
---|
| 68 | ! |
---|
| 69 | !! Initialization of Reprobus |
---|
| 70 | ! IF (type_trac == 'repr') THEN |
---|
| 71 | !#ifdef REPROBUS |
---|
| 72 | ! CALL Init_chem_rep_phys(klon_omp,nbp_lev) |
---|
| 73 | !#endif |
---|
| 74 | ! END IF |
---|
| 75 | ! |
---|
| 76 | !!$OMP END PARALLEL |
---|
| 77 | |
---|
| 78 | !END SUBROUTINE Init_Phys_lmdz |
---|
[1565] | 79 | |
---|
| 80 | |
---|
[2351] | 81 | |
---|
| 82 | |
---|
| 83 | |
---|
| 84 | |
---|
| 85 | |
---|
| 86 | |
---|
| 87 | END MODULE physics_distribution_mod |
---|
| 88 | |
---|