Ignore:
Timestamp:
Jul 10, 2023, 1:40:39 AM (15 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/phylmd/limit_read_mod.F90

    r3435 r4619  
    3636  USE surface_data
    3737  USE mod_phys_lmdz_para
    38 #ifdef CPP_XIOS
    39   USE XIOS
    40 #endif
     38  USE lmdz_xios
     39
    4140  IMPLICIT NONE
    4241    INTEGER, INTENT(IN) :: first_day
     
    4544    IF ( type_ocean /= 'couple') THEN
    4645      IF (grid_type==unstructured) THEN
    47 #ifdef CPP_XIOS
    4846        IF (is_omp_master) CALL xios_set_file_attr("limit_read",enabled=.TRUE.,record_offset=first_day)
    49 #endif
    5047      ENDIF 
    5148    ENDIF
     
    172169    USE phys_cal_mod, ONLY : calend, year_len
    173170    USE print_control_mod, ONLY: lunout, prt_level
    174 #ifdef CPP_XIOS
    175     USE XIOS, ONLY: xios_recv_field
    176 #endif
     171    USE lmdz_xios, ONLY: xios_recv_field, using_xios
    177172   
    178173    IMPLICIT NONE
     
    297292      IF (grid_type==unstructured) THEN
    298293
    299 #ifdef CPP_XIOS
    300294        IF ( type_ocean /= 'couple') THEN
    301295
     
    331325          CALL Scatter_omp(rug_mpi, rugos)
    332326       END IF
    333 #endif
    334 
    335327 
    336328     ELSE      ! grid_type==regular
Note: See TracChangeset for help on using the changeset viewer.