From 685c158b0be9ff00c9bb16d7aa0fd68c8b8747e9 Mon Sep 17 00:00:00 2001
From: ESCOBAR Juan <escj@nuwa>
Date: Mon, 14 Sep 2020 15:10:12 +0200
Subject: [PATCH] Juan 14/09/2020: Rules.LXifort.mk , for reproductibility add
 MNH_BITREP compilation + -fp-model consistent

---
 src/Rules.LXifort.mk | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/src/Rules.LXifort.mk b/src/Rules.LXifort.mk
index 1c9322b3c..fd7ae86c0 100644
--- a/src/Rules.LXifort.mk
+++ b/src/Rules.LXifort.mk
@@ -9,7 +9,8 @@
 ##########################################################
 #OBJDIR_PATH=/home/escj/azertyuiopqsdfghjklm/wxcvbn/azertyuiopqsdfghjklmwxcvbn
 #
-OPT_BASE   =  -g -w -assume nosource_include -assume byterecl -fpe0 -ftz -fpic -traceback  -fp-model precise -switch fe_inline_all_arg_copy_inout -fno-common 
+OPT_BASE   =  -g -w -assume nosource_include -assume byterecl -fpe0 -ftz -fpic -traceback -fp-model consistent -switch fe_inline_all_arg_copy_inout -fno-common 
+# -fimf-arch-consistency 
 OPT_PERF0  =  -O0
 OPT_PERF2  =  -O2
 OPT_PERF3  =  -O3 -xHost
@@ -46,9 +47,9 @@ CFLAGS   += -g
 endif
 ifeq "$(OPTLEVEL)" "OPENACCDEFONLY"
 CPPFLAGS    += -DMNH_OPENACC -D_FAKEOPENACC
-OPT       = $(OPT_BASE) $(OPT_PERF0) $(OPT_CHECK)
-OPT0      = $(OPT_BASE) $(OPT_PERF0) $(OPT_CHECK)
-OPT_NOCB  = $(OPT_BASE) $(OPT_PERF0)
+OPT       = $(OPT_BASE) $(OPT_PERF2) 
+OPT0      = $(OPT_BASE) $(OPT_PERF0) 
+OPT_NOCB  = $(OPT_BASE) $(OPT_PERF2)
 endif
 ifeq "$(OPTLEVEL)" "O2"
 OPT       = $(OPT_BASE) $(OPT_PERF2)
@@ -200,6 +201,11 @@ HDF_CONF= CFLAGS=-std=c99
 HDF_OPT ?= -fPIC
 NETCDF_OPT ?= -fPIC
 #
+#if MNH_BITREP exists => compile with the BITREP library
+ifeq "$(MNH_BITREP)" "YES"
+CPPFLAGS_MNH += -DMNH_BITREP
+endif
+#
 # LIBTOOLS flags
 #
 #if MNH_TOOLS exists => compile the tools
-- 
GitLab