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

Last change on this file since 5411 was 5185, checked in by abarral, 3 months ago

Replace REPROBUS CPP KEY by logical using handmade wonky wrapper

  • 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.2 KB
Line 
1!$Id: lmdz_physics_distribution.F90 5185 2024-09-11 14:27:07Z evignon $
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    USE lmdz_reprobus_wrappers, ONLY: Init_chem_rep_phys
16    USE lmdz_cppkeys_wrapper, ONLY: CPPKEY_INCA, CPPKEY_REPROBUS
17    IMPLICIT NONE
18    INTEGER, INTENT(IN) :: grid_type
19    INTEGER, INTENT(IN) :: nvertex
20    INTEGER, INTENT(IN) :: nbp
21    INTEGER, INTENT(IN) :: nbp_lon
22    INTEGER, INTENT(IN) :: nbp_lat
23    INTEGER, INTENT(IN) :: nbp_lev
24    INTEGER, INTENT(IN) :: communicator
25
26    CALL init_grid_phy_lmdz(grid_type, nvertex, nbp_lon, nbp_lat, nbp_lev)
27    CALL init_phys_lmdz_para(nbp, nbp_lon, nbp_lat, nbp_lev, grid_type, nvertex, communicator)
28    !$OMP PARALLEL
29    CALL init_dimphy(klon_omp, nbp_lev)
30
31    IF (CPPKEY_INCA) THEN
32      CALL Init_inca_dim(klon_omp, nbp_lev)
33    END IF
34
35    IF (CPPKEY_REPROBUS) THEN
36      ! Initialization of Reprobus
37      IF (type_trac == 'repr') CALL Init_chem_rep_phys(klon_omp, nbp_lev)
38    END IF
39
40    !$OMP END PARALLEL
41
42  END SUBROUTINE init_physics_distribution
43
44  !SUBROUTINE Init_Phys_lmdz(iim,jjp1,llm,nb_proc,distrib)
45  !  USE lmdz_phys_para, ONLY: Init_phys_lmdz_para!, klon_omp
46  !  USE lmdz_grid_phy, ONLY: Init_grid_phy_lmdz!, nbp_lev
47  !  USE dimphy, ONLY: Init_dimphy
48  !  USE infotrac_phy, ONLY: type_trac
49  !IF (CPPKEY_REPROBUS) THEN
50  !  USE lmdz_reprobus_wrappers, ONLY: Init_chem_rep_phys
51  !END IF
52
53  !  IMPLICIT NONE
54
55  !    INTEGER,INTENT(IN) :: iim
56  !    INTEGER,INTENT(IN) :: jjp1
57  !    INTEGER,INTENT(IN) :: llm
58  !    INTEGER,INTENT(IN) :: nb_proc
59  !    INTEGER,INTENT(IN) :: distrib(0:nb_proc-1)
60
61
62  !    CALL Init_grid_phy_lmdz(iim,jjp1,llm)
63  !    CALL Init_phys_lmdz_para(iim,jjp1,nb_proc,distrib)
64  !!$OMP PARALLEL
65  !    CALL Init_dimphy(klon_omp,nbp_lev)
66
67  !IF (CPPKEY_REPROBUS) THEN
68  !! Initialization of Reprobus
69  !    IF (type_trac == 'repr') CALL Init_chem_rep_phys(klon_omp,nbp_lev)
70  !    END IF
71  !END IF
72
73  !!$OMP END PARALLEL
74
75  !END SUBROUTINE Init_Phys_lmdz
76
77
78END MODULE lmdz_physics_distribution
79
Note: See TracBrowser for help on using the repository browser.