Ignore:
Timestamp:
Feb 4, 2021, 3:59:25 PM (4 years ago)
Author:
lmdz-users
Message:

to be able to work with dynamico's dynamic, we modify call for the inca initialisation

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

    r3435 r3820  
    4646CONTAINS
    4747 
    48   SUBROUTINE init_phys_lmdz_mpi_data(nbp, nbp_lon, nbp_lat, communicator)
     48  SUBROUTINE init_phys_lmdz_mpi_data(nbp, nbp_lon, nbp_lat, nbp_lev, communicator)
     49
     50    USE infotrac, ONLY: type_trac
     51
    4952  IMPLICIT NONE
    5053#ifdef CPP_MPI
     
    5457    INTEGER,INTENT(IN) :: nbp_lon
    5558    INTEGER,INTENT(IN) :: nbp_lat
     59    INTEGER,INTENT(IN) :: nbp_lev
    5660    INTEGER,INTENT(IN) :: communicator
    5761   
     
    179183   
    180184    CALL Print_module_data
     185
     186    IF (type_trac == 'inca') THEN
     187#ifdef INCA
     188       CALL init_inca_para( &
     189            nbp_lon,nbp_lat,nbp_lev,klon_glo,mpi_size, &
     190            distrib,communicator)
     191#endif
     192    ENDIF
    181193   
    182194  END SUBROUTINE Init_phys_lmdz_mpi_data
  • LMDZ6/branches/LMDZ-INCA-Dyn/libf/phy_common/mod_phys_lmdz_para.F90

    r3465 r3820  
    1717CONTAINS
    1818
    19   SUBROUTINE Init_phys_lmdz_para(nbp,nbp_lon,nbp_lat,communicator)
     19  SUBROUTINE Init_phys_lmdz_para(nbp,nbp_lon,nbp_lat,nbp_lev,communicator)
    2020  IMPLICIT NONE
    2121    INTEGER,INTENT(in) :: nbp
    2222    INTEGER,INTENT(in) :: nbp_lon
    2323    INTEGER,INTENT(in) :: nbp_lat
     24    INTEGER,INTENT(in) :: nbp_lev
    2425    INTEGER,INTENT(in) :: communicator
    2526
    26     CALL Init_phys_lmdz_mpi_data(nbp,nbp_lon,nbp_lat,communicator)
     27    CALL Init_phys_lmdz_mpi_data(nbp,nbp_lon,nbp_lat,nbp_lev,communicator)
    2728!$OMP PARALLEL
    2829    CALL Init_phys_lmdz_omp_data(klon_mpi)
  • LMDZ6/branches/LMDZ-INCA-Dyn/libf/phy_common/physics_distribution_mod.F90

    r3435 r3820  
    2929
    3030    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, communicator)
     31    CALL init_phys_lmdz_para(nbp,nbp_lon, nbp_lat,nbp_lev, communicator)
    3232!$OMP PARALLEL
    3333    CALL init_dimphy(klon_omp,nbp_lev)
     
    3737#ifdef REPROBUS
    3838       CALL Init_chem_rep_phys(klon_omp,nbp_lev)
     39#endif
     40    END IF
     41    IF (type_trac == 'inca') THEN
     42#ifdef INCA
     43       CALL Init_inca_dim(klon_omp,nbp_lev)
    3944#endif
    4045    END IF
Note: See TracChangeset for help on using the changeset viewer.