Ignore:
Timestamp:
Jul 10, 2023, 1:40:39 AM (18 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

Location:
LMDZ6/trunk/libf/dyn3d
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/dyn3d/abort_gcm.F

    r2100 r4619  
    1212      USE ioipsl_getincom
    1313#endif
    14 
    15 #ifdef CPP_XIOS
    16     ! ug Pour les sorties XIOS
     14 ! ug Pour les sorties XIOS
    1715      USE wxios
    18 #endif
    1916
    2017#include "iniprint.h"
     
    3431      write(lunout,*) 'in abort_gcm'
    3532
    36 #ifdef CPP_XIOS
    37     !Fermeture propre de XIOS
    38       CALL wxios_close()
    39 #endif
     33      IF (using_xios) THEN
     34!Fermeture propre de XIOS
     35        CALL wxios_close()
     36      ENDIF
    4037
    4138#ifdef CPP_IOIPSL
  • LMDZ6/trunk/libf/dyn3d/gcm.F90

    r4361 r4619  
    1414
    1515
    16 #ifdef CPP_XIOS
    17   ! ug Pour les sorties XIOS
     16! ug Pour les sorties XIOS
    1817  USE wxios
    19 #endif
    2018
    2119  USE filtreg_mod
     
    156154!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    157155
    158 #ifdef CPP_XIOS
    159   CALL wxios_init("LMDZ")
    160 #endif
     156  IF (using_xios) THEN
     157    CALL wxios_init("LMDZ")
     158  ENDIF
    161159
    162160
Note: See TracChangeset for help on using the changeset viewer.