Ignore:
Timestamp:
Jul 10, 2023, 1:40:39 AM (11 months ago)
Author:
yann meurdesoif
Message:

Suppress usage of preprocessing key CPP_XIOS.
Wrapper file is used to suppress XIOS symbol when xios is not linked and not used (-io ioipsl)
The CPP_XIOS key is replaced in model by "using_xios" boolean variable to switch between IOIPSL or XIOS output.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmdiso/limit_read_mod.F90

    r4143 r4619  
    4040  USE surface_data
    4141  USE mod_phys_lmdz_para
    42 #ifdef CPP_XIOS
    43   USE XIOS
    44 #endif
     42  USE lmdz_xios
    4543  IMPLICIT NONE
    4644    INTEGER, INTENT(IN) :: first_day
     
    4947    IF ( type_ocean /= 'couple') THEN
    5048      IF (grid_type==unstructured) THEN
    51 #ifdef CPP_XIOS
    52         IF (is_omp_master) CALL xios_set_file_attr("limit_read",enabled=.TRUE.,record_offset=first_day)
    53 #endif
     49          IF (is_omp_master) CALL xios_set_file_attr("limit_read",enabled=.TRUE.,record_offset=first_day)
    5450      ENDIF 
    5551    ENDIF
     
    288284    USE phys_cal_mod, ONLY : calend, year_len
    289285    USE print_control_mod, ONLY: lunout, prt_level
    290 #ifdef CPP_XIOS
    291     USE XIOS, ONLY: xios_recv_field
    292 #endif
     286    USE lmdz_XIOS, ONLY: xios_recv_field
    293287   
    294288    IMPLICIT NONE
     
    416410      IF (grid_type==unstructured) THEN
    417411
    418 #ifdef CPP_XIOS
    419412        IF ( type_ocean /= 'couple') THEN
    420413
     
    450443          CALL Scatter_omp(rug_mpi, rugos)
    451444       END IF
    452 #endif
    453 
    454  
     445
    455446     ELSE      ! grid_type==regular
    456447
Note: See TracChangeset for help on using the changeset viewer.