source: LMDZ6/trunk/libf/phy_common/physics_distribution_mod.F90 @ 4142

Last change on this file since 4142 was 4127, checked in by acozic, 3 years ago

modify lmdz code in order to transfer to inca model all infomations necessary for the coupling with dynamico

  • Property copyright set to
    Name of program: LMDZ
    Creation date: 1984
    Version: LMDZ5
    License: CeCILL version 2
    Holder: Laboratoire de m\'et\'eorologie dynamique, CNRS, UMR 8539
    See the license file in the root directory
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1!
2!$Id: physics_distribution_mod.F90 4127 2022-04-20 09:01:09Z fhourdin $
3!
4MODULE physics_distribution_mod
5
6
7CONTAINS
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_phy, 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    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,nbp_lev, grid_type,nvertex, communicator)
32!$OMP PARALLEL
33    CALL init_dimphy(klon_omp,nbp_lev)
34
35#ifdef INCA
36       CALL Init_inca_dim(klon_omp,nbp_lev)
37#endif
38
39! Initialization of Reprobus
40    IF (type_trac == 'repr') THEN
41#ifdef REPROBUS
42       CALL Init_chem_rep_phys(klon_omp,nbp_lev)
43#endif
44    END IF
45
46!$OMP END PARALLEL
47
48  END SUBROUTINE init_physics_distribution 
49
50!SUBROUTINE Init_Phys_lmdz(iim,jjp1,llm,nb_proc,distrib)
51!  USE mod_phys_lmdz_para, ONLY: Init_phys_lmdz_para!, klon_omp
52!  USE mod_grid_phy_lmdz, ONLY: Init_grid_phy_lmdz!, nbp_lev
53!  USE dimphy, ONLY : Init_dimphy
54!  USE infotrac_phy, ONLY : type_trac
55!#ifdef REPROBUS
56!  USE CHEM_REP, ONLY : Init_chem_rep_phys
57!#endif
58
59!  IMPLICIT NONE
60 
61!    INTEGER,INTENT(in) :: iim
62!    INTEGER,INTENT(in) :: jjp1
63!    INTEGER,INTENT(in) :: llm
64!    INTEGER,INTENT(in) :: nb_proc
65!    INTEGER,INTENT(in) :: distrib(0:nb_proc-1)
66
67
68!    CALL Init_grid_phy_lmdz(iim,jjp1,llm)
69!    CALL Init_phys_lmdz_para(iim,jjp1,nb_proc,distrib)
70!!$OMP PARALLEL
71!    CALL Init_dimphy(klon_omp,nbp_lev)
72!
73!! Initialization of Reprobus
74!    IF (type_trac == 'repr') THEN
75!#ifdef REPROBUS
76!       CALL Init_chem_rep_phys(klon_omp,nbp_lev)
77!#endif
78!    END IF
79!
80!!$OMP END PARALLEL
81 
82!END SUBROUTINE Init_Phys_lmdz 
83
84
85
86
87
88
89
90
91END MODULE physics_distribution_mod
92
Note: See TracBrowser for help on using the repository browser.