Ignore:
Timestamp:
Jul 20, 2024, 11:17:09 PM (6 months ago)
Author:
abarral
Message:

Move lmdz_netcdf_format.F90 -> lmdz_cppkeys_wrapper.F90 to handle other CPP keys
Replace all (except wrapper) use of CPP_PHYS by fortran logical
Refactor makelmdz_fcm (put blocks into functions, use modern bash)

Location:
LMDZ6/branches/Amaury_dev/libf/phy_common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Amaury_dev/libf/phy_common/mod_phys_lmdz_mpi_data.F90

    r5082 r5091  
    4949  SUBROUTINE init_phys_lmdz_mpi_data(nbp, nbp_lon, nbp_lat, nbp_lev, grid_type, nvertex, communicator)
    5050  USE lmdz_mpi
     51  USE lmdz_cppkeys_wrapper, ONLY: CPPKEY_INCA
    5152  IMPLICIT NONE
    5253    INTEGER,INTENT(IN) :: nbp
     
    174175    CALL Print_module_data
    175176
    176 #ifdef INCA
     177  IF (CPPKEY_INCA) THEN
    177178       CALL init_inca_para( &
    178179            nbp_lon,nbp_lat,nbp_lev,klon_glo,mpi_size, &
    179180            distrib,nvertex, grid_type,communicator)
    180 #endif
     181  END IF
    181182   
    182183  END SUBROUTINE Init_phys_lmdz_mpi_data
  • LMDZ6/branches/Amaury_dev/libf/phy_common/physics_distribution_mod.F90

    r4389 r5091  
    1717  USE CHEM_REP, ONLY : Init_chem_rep_phys
    1818#endif
    19 
     19  USE lmdz_cppkeys_wrapper, ONLY: CPPKEY_INCA
    2020  IMPLICIT NONE
    2121    INTEGER,INTENT(IN) :: grid_type
     
    3333    CALL init_dimphy(klon_omp,nbp_lev)
    3434
    35 #ifdef INCA
     35  IF (CPPKEY_INCA) THEN
    3636       CALL Init_inca_dim(klon_omp,nbp_lev)
    37 #endif
     37  END IF
    3838
    3939#ifdef REPROBUS
Note: See TracChangeset for help on using the changeset viewer.