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

    r4489 r4619  
    2323
    2424
    25   SUBROUTINE init_readaerosolstrato1
    26 #ifdef CPP_XIOS
     25SUBROUTINE init_readaerosolstrato1
    2726  USE netcdf
    2827  USE netcdf95, ONLY: nf95_close, nf95_gw_var, nf95_inq_dimid, &
    2928                      nf95_inq_varid, nf95_open
    3029  USE mod_phys_lmdz_para
    31   USE xios
     30  USE lmdz_xios
    3231!  USE YOERAD, ONLY : NLW
    3332  IMPLICIT NONE
     
    3837  INTEGER :: ncid_in, varid
    3938 
     39  IF (using_xios) THEN
    4040    IF (is_omp_master) THEN 
    4141      IF (is_mpi_root) THEN
     
    6363    ENDIF
    6464   
    65 #endif
    66   END SUBROUTINE init_readaerosolstrato1
     65  ENDIF
     66END SUBROUTINE init_readaerosolstrato1
    6767 
    68   SUBROUTINE init_readaerosolstrato2
    69 #ifdef CPP_XIOS
     68SUBROUTINE init_readaerosolstrato2
    7069  USE netcdf
    7170  USE netcdf95, ONLY: nf95_close, nf95_gw_var, nf95_inq_dimid, &
    7271                      nf95_inq_varid, nf95_open
    7372  USE mod_phys_lmdz_para
    74   USE xios
     73  USE lmdz_xios
    7574!  USE YOERAD, ONLY : NLW
    7675  IMPLICIT NONE
     
    8079  REAL    :: null_array(0)
    8180  INTEGER :: ncid_in, varid
    82 
     81 
     82  IF (using_xios) THEN
    8383    IF (is_omp_master) THEN   
    8484      IF (is_mpi_root) THEN
     
    131131
    132132    ENDIF
    133 #endif   
    134   END SUBROUTINE init_readaerosolstrato2
     133  ENDIF   
     134END SUBROUTINE init_readaerosolstrato2
    135135 
    136136
Note: See TracChangeset for help on using the changeset viewer.