source: dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/physics_distribution_mod.F90 @ 3825

Last change on this file since 3825 was 3825, checked in by ymipsl, 10 years ago

Reorganize geometry and grid modules. Prepare physics for unstructutured grid support. Simplify initialization of physics from dynamic.
Compiled only with dynd3dmem, but not tested for moment.

YM

File size: 1.1 KB
Line 
1MODULE physics_distribution_mod
2
3
4CONTAINS
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 
39END SUBROUTINE init_physics_distribution 
40
41
42
43
44
45
46
47END MODULE physics_distribution_mod
Note: See TracBrowser for help on using the repository browser.