Ignore:
Timestamp:
Feb 11, 2021, 3:29:29 PM (4 years ago)
Author:
acozic
Message:

add parameters to define unstructured grid on Inca model

Location:
LMDZ6/branches/LMDZ-INCA-Dyn/libf/phy_common
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/LMDZ-INCA-Dyn/libf/phy_common/mod_phys_lmdz_mpi_data.F90

    r3820 r3841  
    4646CONTAINS
    4747 
    48   SUBROUTINE init_phys_lmdz_mpi_data(nbp, nbp_lon, nbp_lat, nbp_lev, communicator)
    49 
    50     USE infotrac, ONLY: type_trac
     48  SUBROUTINE init_phys_lmdz_mpi_data(nbp, nbp_lon, nbp_lat, nbp_lev, grid_type, nvertex, communicator)
     49
     50!    USE infotrac, ONLY: type_trac
    5151
    5252  IMPLICIT NONE
     
    5959    INTEGER,INTENT(IN) :: nbp_lev
    6060    INTEGER,INTENT(IN) :: communicator
     61    INTEGER,INTENT(IN) :: grid_type
     62    INTEGER,INTENT(IN) :: nvertex
    6163   
    6264    INTEGER,ALLOCATABLE :: distrib(:)
     
    184186    CALL Print_module_data
    185187
    186     IF (type_trac == 'inca') THEN
     188!    IF (type_trac == 'inca') THEN
    187189#ifdef INCA
    188190       CALL init_inca_para( &
    189191            nbp_lon,nbp_lat,nbp_lev,klon_glo,mpi_size, &
    190             distrib,communicator)
    191 #endif
    192     ENDIF
     192            distrib,nvertex, grid_type,communicator)
     193#endif
     194!    ENDIF
    193195   
    194196  END SUBROUTINE Init_phys_lmdz_mpi_data
  • LMDZ6/branches/LMDZ-INCA-Dyn/libf/phy_common/mod_phys_lmdz_para.F90

    r3820 r3841  
    1717CONTAINS
    1818
    19   SUBROUTINE Init_phys_lmdz_para(nbp,nbp_lon,nbp_lat,nbp_lev,communicator)
     19  SUBROUTINE Init_phys_lmdz_para(nbp,nbp_lon,nbp_lat,nbp_lev,grid_type, nvertex,communicator)
    2020  IMPLICIT NONE
    2121    INTEGER,INTENT(in) :: nbp
     
    2424    INTEGER,INTENT(in) :: nbp_lev
    2525    INTEGER,INTENT(in) :: communicator
     26    INTEGER,INTENT(IN) :: grid_type
     27    INTEGER,INTENT(IN) :: nvertex
    2628
    27     CALL Init_phys_lmdz_mpi_data(nbp,nbp_lon,nbp_lat,nbp_lev,communicator)
     29    CALL Init_phys_lmdz_mpi_data(nbp,nbp_lon,nbp_lat,nbp_lev, grid_type, nvertex,communicator)
    2830!$OMP PARALLEL
    2931    CALL Init_phys_lmdz_omp_data(klon_mpi)
  • LMDZ6/branches/LMDZ-INCA-Dyn/libf/phy_common/physics_distribution_mod.F90

    r3840 r3841  
    1313  USE mod_grid_phy_lmdz, ONLY: init_grid_phy_lmdz
    1414  USE dimphy, ONLY : Init_dimphy
    15 ! attention a modifier, on ne peut pas garder infotrac depuis la physique
    16 ! bug avec le couplage dynamico
    17   USE infotrac, ONLY : type_trac
     15!  USE infotrac, ONLY : type_trac
    1816#ifdef REPROBUS
    1917  USE CHEM_REP, ONLY : Init_chem_rep_phys
     
    3129
    3230    CALL init_grid_phy_lmdz(grid_type,nvertex, nbp_lon,nbp_lat,nbp_lev)
    33     CALL init_phys_lmdz_para(nbp,nbp_lon, nbp_lat,nbp_lev, communicator)
     31    CALL init_phys_lmdz_para(nbp,nbp_lon, nbp_lat,nbp_lev, grid_type,nvertex, communicator)
    3432!$OMP PARALLEL
    3533    CALL init_dimphy(klon_omp,nbp_lev)
    3634
    3735! Initialization of Reprobus
    38     IF (type_trac == 'repr') THEN
     36!    IF (type_trac == 'repr') THEN
    3937#ifdef REPROBUS
    4038       CALL Init_chem_rep_phys(klon_omp,nbp_lev)
    4139#endif
    42     END IF
    43     IF (type_trac == 'inca') THEN
     40!    END IF
     41!    IF (type_trac == 'inca') THEN
    4442#ifdef INCA
    4543       CALL Init_inca_dim(klon_omp,nbp_lev)
    4644#endif
    47     END IF
     45!    END IF
    4846
    4947!$OMP END PARALLEL
Note: See TracChangeset for help on using the changeset viewer.