# Note: this is a TEMPORARY (12/24) arch to resolve an issue linked to paths in ORCHIDEE archs
# It's just a copy of X64_JEANZAY so that the installer uses the LMDZ arch rather than the ORCHIDEE's base arch
# + `-P -traditional` in FPP_FLAGS for orchidee compilation
# + lines for xios

# $Id: arch-X64_JEANZAY_PBIOIPSL.fcm 5382 2024-12-04 17:27:37Z abarral $
%COMPILER            mpiifort
%CCOMPILER           mpiicc  # xios
%LINK                mpiifort
%FPP                 mpiifort -E  # XIOS doesn't recognize %FPP_FLAGS so the -E must be here
%AR                  ar
%ARFLAGS             rs
%MAKE                gmake
%FPP_FLAGS           -P -traditional  # required for ORCHIDEE compilation
%FPP_DEF             NC_DOUBLE FFT_MKL
%BASE_FFLAGS         -i4 -r8 -auto -align all -fp-model strict
%BASE_CFLAGS         -diag-disable 1125 -diag-disable 279 -std=c++11  # xios
%PROD_FFLAGS         -O3 -xHost -qopt-zmm-usage=high
%PROD_CFLAGS         -O3 -D BOOST_DISABLE_ASSERTS  # xios
%DEV_FFLAGS          -p -g -O2 -traceback -fp-stack-check
%DEV_CFLAGS          -g -traceback  # xios
%DEBUG_FFLAGS        -p -g -O0 -traceback -fp-stack-check -ftrapuv -check bounds,noarg_temp_created,pointers,stack,uninit -debug full -init=arrays -init=snan
%DEBUG_CFLAGS        -DBZ_DEBUG -g -traceback -fno-inline  # xios
%MPI_FFLAGS
%OMP_FFLAGS          -qopenmp
%BASE_LD             -i4 -r8 -auto -lmkl_intel_lp64 -lmkl_core -lmkl_sequential -lpthread
%BASE_INC            -D__NONE__  # xios
%MPI_LD
%OMP_LD              -qopenmp
%CPP                 mpiicc -EP  # xios
