From c00806fc53d3eef9a5ac7fffe22ae5d170eecb3d Mon Sep 17 00:00:00 2001
From: Quentin Rodier <quentin.rodier@meteo.fr>
Date: Wed, 25 Oct 2023 14:47:09 +0200
Subject: [PATCH] Quentin 25/10/2023: use SPLL_new for Meteo-France machines
 (CNRM, team server, ENM, belenos/taranis) add Ubuntu22 for team server at
 CNRM (sxphynh, sxville, sxprecip...)

---
 src/Rules.LXgfortran.mk |  2 +-
 src/Rules.LXifort.mk    |  3 ++-
 src/configure           | 21 ++++++++++++++++++++-
 3 files changed, 23 insertions(+), 3 deletions(-)

diff --git a/src/Rules.LXgfortran.mk b/src/Rules.LXgfortran.mk
index c7b137361..0824a1737 100644
--- a/src/Rules.LXgfortran.mk
+++ b/src/Rules.LXgfortran.mk
@@ -167,7 +167,7 @@ endif
 
 ifeq ($(shell test $(GFV) -le 482 ; echo $$?),0)
 ifneq "$(OPTLEVEL)" "DEBUG"
-OBJS_O0= spll_lima_phillips_integ.o
+OBJS_O0= spll_lima_phillips_integ.o mode_lima_phillips_integ.mod
 $(OBJS_O0) : OPT = $(OPT_BASE) $(OPT_PERF0)
 endif
 endif
diff --git a/src/Rules.LXifort.mk b/src/Rules.LXifort.mk
index 7788bb031..1176be17f 100644
--- a/src/Rules.LXifort.mk
+++ b/src/Rules.LXifort.mk
@@ -242,7 +242,8 @@ include Makefile.MESONH.mk
 ifneq "$(OPTLEVEL)" "DEBUG"
 OPT_PERF1  =  -O1 
 OBJS_O1= spll_mode_snow3l.o spll_schu.o spll_ps2str.o spll_p_abs.o spll_ini_one_way_n.o spll_urban_solar_abs.o spll_aeroopt_get.o spll_ch_get_rates.o \
-         spll_ini_aeroset1.o spll_ini_aeroset2.o spll_ini_aeroset3.o spll_ini_aeroset4.o spll_ini_aeroset5.o spll_ini_aeroset6.o
+         spll_ini_aeroset1.o spll_ini_aeroset2.o spll_ini_aeroset3.o spll_ini_aeroset4.o spll_ini_aeroset5.o spll_ini_aeroset6.o \
+         mode_snow3l.mod mode_ini_one_way_n.mod
 $(OBJS_O1) : OPT = $(OPT_BASE) $(OPT_PERF1)
 endif
 
diff --git a/src/configure b/src/configure
index 659eac8cd..cd10928c1 100755
--- a/src/configure
+++ b/src/configure
@@ -270,6 +270,8 @@ module load intel/2019.5.281
 module load openmpi/intel/4.0.2.2
 module load cmake/3.15.4
 unset CC CXX
+export SPLL=spll_new
+
 "}
               ;;
 'Linux login0'*|'Linux compute'*)
@@ -436,9 +438,23 @@ export CC=gcc
 		export NEED_TOOLS=NO
 		export MNHENV=${MNHENV:-"
 export PATH=/opt/gcc-9.4.0/bin:\$PATH
+export SPLL=spll_new
 "}
 		;;
-'Linux lx'*|'Linux sx'*|'Linux px'*) #CNRM
+'Linux sx'*) #CNRM team server UBUNTU22
+                export MNH_ARCH=`echo $ARCH | grep LX`
+                export     ARCH=${MNH_ARCH:-LXgfortran}
+                export  VER_MPI=${VER_MPI:-MPIAUTO}
+                export OPTLEVEL=${OPTLEVEL:-DEBUG}
+                export MVWORK=${MVWORK:-NO}
+                export VER_CDF=${VER_CDF:-CDFAUTO}
+                export NEED_TOOLS=NO
+                export MNHENV=${MNHENV:-"
+export PATH=/opt/gcc-9.4.0/bin:\$PATH
+export SPLL=spll_new
+"}
+                 ;;
+'Linux lx'*|'Linux px'*) #CNRM
                 export MNH_ARCH=`echo $ARCH | grep LX`
                 export     ARCH=${MNH_ARCH:-LXgfortran}
                 export  VER_MPI=${VER_MPI:-MPIAUTO}
@@ -446,6 +462,9 @@ export PATH=/opt/gcc-9.4.0/bin:\$PATH
                 export MVWORK=${MVWORK:-NO}
                 export VER_CDF=${VER_CDF:-CDFCTI}
 		export NEED_TOOLS=NO
+                export MNHENV=${MNHENV:-"
+export SPLL=spll_new
+"}
               ;;
 'Linux nuwa'*)
                 export     ARCH=${ARCH:-LXifort}
-- 
GitLab