diff --git a/src/Rules.LXifort.mk b/src/Rules.LXifort.mk index 1c9322b3c129f69ac05fd8bcf8e375fe9c073f27..fd7ae86c0ca2e15a846af4b7d8e1d473561c64b4 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