source: LMDZ6/branches/Amaury_dev/libf/phy_common/lmdz_physics_distribution.F90 @ 5122

Last change on this file since 5122 was 5117, checked in by abarral, 4 months ago

rename modules properly lmdz_*
move some unused files to obsolete/
(lint) uppercase fortran keywords

  • 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!$Id: lmdz_physics_distribution.F90 5117 2024-07-24 14:23:34Z abarral $
2
3MODULE lmdz_physics_distribution
4
5
6CONTAINS
7
8  SUBROUTINE init_physics_distribution(grid_type, nvertex, &
9          nbp, nbp_lon, nbp_lat, nbp_lev, &
10          communicator)
11    USE lmdz_phys_para, ONLY: init_phys_lmdz_para, klon_omp
12    USE lmdz_grid_phy, ONLY: init_grid_phy_lmdz
13    USE dimphy, ONLY: Init_dimphy
14    USE infotrac_phy, ONLY: type_trac
15#ifdef REPROBUS
16  USE CHEM_REP, ONLY: Init_chem_rep_phys
17#endif
18    USE lmdz_cppkeys_wrapper, ONLY: CPPKEY_INCA
19    IMPLICIT NONE
20    INTEGER, INTENT(IN) :: grid_type
21    INTEGER, INTENT(IN) :: nvertex
22    INTEGER, INTENT(IN) :: nbp
23    INTEGER, INTENT(IN) :: nbp_lon
24    INTEGER, INTENT(IN) :: nbp_lat
25    INTEGER, INTENT(IN) :: nbp_lev
26    INTEGER, INTENT(IN) :: communicator
27
28    CALL init_grid_phy_lmdz(grid_type, nvertex, nbp_lon, nbp_lat, nbp_lev)
29    CALL init_phys_lmdz_para(nbp, nbp_lon, nbp_lat, nbp_lev, grid_type, nvertex, communicator)
30    !$OMP PARALLEL
31    CALL init_dimphy(klon_omp, nbp_lev)
32
33    IF (CPPKEY_INCA) THEN
34      CALL Init_inca_dim(klon_omp, nbp_lev)
35    END IF
36
37#ifdef REPROBUS
38! Initialization of Reprobus
39    IF (type_trac == 'repr') CALL Init_chem_rep_phys(klon_omp,nbp_lev)
40#endif
41
42    !$OMP END PARALLEL
43
44  END SUBROUTINE init_physics_distribution
45
46  !SUBROUTINE Init_Phys_lmdz(iim,jjp1,llm,nb_proc,distrib)
47  !  USE lmdz_phys_para, ONLY: Init_phys_lmdz_para!, klon_omp
48  !  USE lmdz_grid_phy, 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
56
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)
62
63
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  !#ifdef REPROBUS
70  !! Initialization of Reprobus
71  !    IF (type_trac == 'repr') CALL Init_chem_rep_phys(klon_omp,nbp_lev)
72  !    END IF
73  !#endif
74
75  !!$OMP END PARALLEL
76
77  !END SUBROUTINE Init_Phys_lmdz
78
79
80END MODULE lmdz_physics_distribution
81
Note: See TracBrowser for help on using the repository browser.