source: LMDZ6/trunk/libf/phy_common/physics_distribution_mod.f90 @ 5449

Last change on this file since 5449 was 5268, checked in by abarral, 2 months ago

.f90 <-> .F90 depending on cpp key use

  • 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
RevLine 
[775]1!
[2351]2!$Id: physics_distribution_mod.f90 5268 2024-10-23 17:02:39Z fhourdin $
[775]3!
[2351]4MODULE physics_distribution_mod
[1565]5
[2351]6
7CONTAINS
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
[4389]15  USE infotrac_phy, ONLY : type_trac
[5252]16  USE lmdz_reprobus_wrappers, ONLY : Init_chem_rep_phys
17  USE lmdz_cppkeys_wrapper, ONLY: CPPKEY_INCA, CPPKEY_REPROBUS
[3435]18
[775]19  IMPLICIT NONE
[2351]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
29    CALL init_grid_phy_lmdz(grid_type,nvertex, nbp_lon,nbp_lat,nbp_lev)
[4127]30    CALL init_phys_lmdz_para(nbp,nbp_lon, nbp_lat,nbp_lev, grid_type,nvertex, communicator)
[3435]31!$OMP PARALLEL
32    CALL init_dimphy(klon_omp,nbp_lev)
[2351]33
[5251]34IF (CPPKEY_INCA) THEN
[4127]35       CALL Init_inca_dim(klon_omp,nbp_lev)
[5251]36END IF
[4127]37
[5252]38IF (CPPKEY_REPROBUS) THEN
[3435]39! Initialization of Reprobus
[4389]40    IF (type_trac == 'repr') CALL Init_chem_rep_phys(klon_omp,nbp_lev)
[5252]41END IF
[3435]42
43!$OMP END PARALLEL
44
[2351]45  END SUBROUTINE init_physics_distribution 
46
47!SUBROUTINE Init_Phys_lmdz(iim,jjp1,llm,nb_proc,distrib)
48!  USE mod_phys_lmdz_para, ONLY: Init_phys_lmdz_para!, klon_omp
49!  USE mod_grid_phy_lmdz, ONLY: Init_grid_phy_lmdz!, nbp_lev
50!  USE dimphy, ONLY : Init_dimphy
[4389]51!  USE infotrac_phy, ONLY : type_trac
[2351]52!#ifdef REPROBUS
[5252]53!  USE lmdz_reprobus_wrappers, ONLY : Init_chem_rep_phys
[2351]54!#endif
55
56!  IMPLICIT NONE
[775]57 
[2351]58!    INTEGER,INTENT(in) :: iim
59!    INTEGER,INTENT(in) :: jjp1
60!    INTEGER,INTENT(in) :: llm
61!    INTEGER,INTENT(in) :: nb_proc
62!    INTEGER,INTENT(in) :: distrib(0:nb_proc-1)
[775]63
64
[2351]65!    CALL Init_grid_phy_lmdz(iim,jjp1,llm)
66!    CALL Init_phys_lmdz_para(iim,jjp1,nb_proc,distrib)
67!!$OMP PARALLEL
68!    CALL Init_dimphy(klon_omp,nbp_lev)
69!
[4172]70!#ifdef REPROBUS
[2351]71!! Initialization of Reprobus
[4389]72!    IF (type_trac == 'repr') CALL Init_chem_rep_phys(klon_omp,nbp_lev)
[4172]73!    END IF
[2351]74!#endif
75!
76!!$OMP END PARALLEL
77 
78!END SUBROUTINE Init_Phys_lmdz 
[1565]79
80
[2351]81
82
83
84
85
86
87END MODULE physics_distribution_mod
88
Note: See TracBrowser for help on using the repository browser.