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/moy_undefSTD.F90

    r3435 r4619  
    88  USE phys_state_var_mod
    99#endif
    10 #ifdef CPP_XIOS
    11   USE wxios, ONLY: missing_val
    12 #endif
     10  USE wxios, ONLY: missing_val_xios => missing_val, using_xios
    1311 
    1412  USE phys_cal_mod, ONLY: mth_len
    1513  IMPLICIT NONE
    1614  include "clesphys.h"
    17 #ifndef CPP_XIOS
    1815  REAL :: missing_val
    19 #endif
    2016
    2117  ! ====================================================================
     
    5955
    6056! missing_val = nf90_fill_real
    61 #ifndef CPP_XIOS
    62       missing_val=missing_val_nf90
    63 #endif
     57  IF (using_xios) THEN
     58    missing_val = missing_val_xios
     59  ELSE
     60    missing_val=missing_val_nf90
     61  ENDIF
    6462
    6563  DO n = 1, nout
Note: See TracChangeset for help on using the changeset viewer.