Skip to content
Snippets Groups Projects
Commit c8bb5cd3 authored by WAUTELET Philippe's avatar WAUTELET Philippe
Browse files

Philippe 08/07/2016: it is now possible to compile the bin_tools directly with...

Philippe 08/07/2016: it is now possible to compile the bin_tools directly with MESONH using the MNH_TOOLS key.
For the moment, only LFI2CDF is available. The executable are linked to bin_tools/
parent 45bfbec1
No related branches found
No related tags found
No related merge requests found
...@@ -113,7 +113,7 @@ export XYZ="-\${ARCH}\${MNH_REAL:+\${MNH_REAL}}I\${MNH_INT}-\${VERSION_XYZ}\${VE ...@@ -113,7 +113,7 @@ export XYZ="-\${ARCH}\${MNH_REAL:+\${MNH_REAL}}I\${MNH_INT}-\${VERSION_XYZ}\${VE
#[ "x\${VER_USER}" != "x" ] && export XYZ="\${XYZ}-\${VER_USER}" #[ "x\${VER_USER}" != "x" ] && export XYZ="\${XYZ}-\${VER_USER}"
# PATH to find tools like "makegen, etc ..." # PATH to find tools like "makegen, etc ..."
export BIN_TOOLS=${BIN_TOOLS} export BIN_TOOLS=${BIN_TOOLS}
export PATH=.:\$SRC_MESONH/bin:\$SRC_MESONH/exe:\$SRC_MESONH/bin_tools/\${BIN_TOOLS}:\$PATH export PATH=.:\$SRC_MESONH/bin:\$SRC_MESONH/exe:\$SRC_MESONH/bin_tools:\$SRC_MESONH/bin_tools/\${BIN_TOOLS}:\$PATH
# #
# NCARG_ROOT : for use of graphic tools : diaprog # NCARG_ROOT : for use of graphic tools : diaprog
# #
......
...@@ -340,7 +340,7 @@ cdf : $(CDF_INC) ...@@ -340,7 +340,7 @@ cdf : $(CDF_INC)
$(CDF_INC) : $(CDF_INC) :
cd ${DIR_HDF} && ./configure --disable-shared --prefix=${CDF_PATH} --libdir=${CDF_PATH}/lib64 --with-zlib=no \ cd ${DIR_HDF} && ./configure --disable-shared --prefix=${CDF_PATH} --libdir=${CDF_PATH}/lib64 --with-zlib=no \
FC="$(FC)" FCFLAGS="$(HDF_OPT)" CPPFLAGS="-DpgiFortran" ${HDF_CONF} && make && make install && $(MAKE) -j 1 clean FC="$(FC)" FCFLAGS="$(HDF_OPT)" CPPFLAGS="-DpgiFortran" ${HDF_CONF} && make && make install && $(MAKE) -j 1 clean
cd ${DIR_CDF} && ./configure --disable-shared --prefix=${CDF_PATH} --libdir=${CDF_PATH}/lib64 --disable-cxx --disable-f90 --disable-dap \ cd ${DIR_CDF} && ./configure --disable-shared --prefix=${CDF_PATH} --libdir=${CDF_PATH}/lib64 --disable-cxx --enable-f90 --disable-dap \
FC="$(FC)" FCFLAGS="$(NETCDF_OPT)" CPPFLAGS="-DpgiFortran ${INC_NETCDF}" ${CDF_CONF} LDFLAGS=" -L${CDF_PATH}/lib64" && make && make install && $(MAKE) -j 1 clean FC="$(FC)" FCFLAGS="$(NETCDF_OPT)" CPPFLAGS="-DpgiFortran ${INC_NETCDF}" ${CDF_CONF} LDFLAGS=" -L${CDF_PATH}/lib64" && make && make install && $(MAKE) -j 1 clean
cleanmaster : cleancdf cleanmaster : cleancdf
...@@ -374,6 +374,11 @@ ifndef DO_COMP_USER ...@@ -374,6 +374,11 @@ ifndef DO_COMP_USER
else else
# ln -sf $(OBJDIR)/$(*F) $(SRC_MESONH)/exe/$(*F)-${ARCH_XYZ}-${VER_USER} # ln -sf $(OBJDIR)/$(*F) $(SRC_MESONH)/exe/$(*F)-${ARCH_XYZ}-${VER_USER}
ln -sf $(OBJDIR)/$(*F) $(SRC_MESONH)/exe/$(*F)${XYZ} ln -sf $(OBJDIR)/$(*F) $(SRC_MESONH)/exe/$(*F)${XYZ}
endif
ifdef MNH_TOOLS
ln -sf $(OBJDIR)/LFI2CDF $(SRC_MESONH)/bin_tools/lfi2cdf
ln -sf $(OBJDIR)/LFI2CDF $(SRC_MESONH)/bin_tools/cdf2cdf
ln -sf $(OBJDIR)/LFI2CDF $(SRC_MESONH)/bin_tools/cdf2lfi
endif endif
rm -f $(SRC_MESONH)/exe/$(*F)_${ARCH_XYZ}~ rm -f $(SRC_MESONH)/exe/$(*F)_${ARCH_XYZ}~
......
...@@ -195,6 +195,17 @@ VPATH += $(DIR_FOREFIRE) ...@@ -195,6 +195,17 @@ VPATH += $(DIR_FOREFIRE)
CPPFLAGS += -DMNH_FOREFIRE CPPFLAGS += -DMNH_FOREFIRE
endif endif
########################################################## ##########################################################
# Source TOOLS #
##########################################################
ifdef MNH_TOOLS
DIR_TOOLS += ../LIBTOOLS/tools/lfi2cdf/src
INC_TOOLS += -I$(B)$(DIR_TOOLS)
DIR_MASTER += $(DIR_TOOLS)
INC += $(INC_TOOLS)
VPATH += $(DIR_TOOLS)
#CPPFLAGS += -DLOWMEM
endif
##########################################################
# Source MPIVIDE # # Source MPIVIDE #
########################################################## ##########################################################
# #
...@@ -502,6 +513,9 @@ NSOURCE=8 ...@@ -502,6 +513,9 @@ NSOURCE=8
PROG_LIST += MESONH LATLON_TO_XY PREP_IDEAL_CASE PREP_REAL_CASE PREP_PGD \ PROG_LIST += MESONH LATLON_TO_XY PREP_IDEAL_CASE PREP_REAL_CASE PREP_PGD \
PREP_NEST_PGD SPAWNING DIAG PREP_SURFEX ZOOM_PGD SPECTRE \ PREP_NEST_PGD SPAWNING DIAG PREP_SURFEX ZOOM_PGD SPECTRE \
MNH2LPDM MNH2LPDM
ifdef MNH_TOOLS
PROG_LIST += LFI2CDF
endif
#endif #endif
########################################################## ##########################################################
# # # #
......
...@@ -95,6 +95,12 @@ CPPFLAGS_MNH = -DAMAX1=MAX -DMNH ...@@ -95,6 +95,12 @@ CPPFLAGS_MNH = -DAMAX1=MAX -DMNH
TARGET_GRIBEX=ibm_power4 TARGET_GRIBEX=ibm_power4
CNAME_GRIBEX="" CNAME_GRIBEX=""
#A64=A64 #A64=A64
#
# LIBTOOLS flags
#
#if MNH_TOOLS exists => compile the tools
MNH_TOOLS = yes
#
########################################################## ##########################################################
# # # #
# Source of MESONH PACKAGE Distribution # # Source of MESONH PACKAGE Distribution #
......
...@@ -106,6 +106,12 @@ CPPFLAGS_MNH = -DAMAX1=MAX -DMNH ...@@ -106,6 +106,12 @@ CPPFLAGS_MNH = -DAMAX1=MAX -DMNH
TARGET_GRIBEX=ibm_power4 TARGET_GRIBEX=ibm_power4
CNAME_GRIBEX="" CNAME_GRIBEX=""
#A64=A64 #A64=A64
#
# LIBTOOLS flags
#
#if MNH_TOOLS exists => compile the tools
#MNH_TOOLS = no
#
########################################################## ##########################################################
# # # #
# Source of MESONH PACKAGE Distribution # # Source of MESONH PACKAGE Distribution #
......
...@@ -165,6 +165,11 @@ CNAME_GRIBEX="" ...@@ -165,6 +165,11 @@ CNAME_GRIBEX=""
# Gribapi flags # Gribapi flags
GRIBAPI_CONF= --host=powerpc64-bgq-linux GRIBAPI_CONF= --host=powerpc64-bgq-linux
# #
# LIBTOOLS flags
#
#if MNH_TOOLS exists => compile the tools
#MNH_TOOLS = no
#
########################################################## ##########################################################
# # # #
# Source of MESONH PACKAGE Distribution # # Source of MESONH PACKAGE Distribution #
......
...@@ -51,6 +51,12 @@ CPPFLAGS_MNH = -DMNH ...@@ -51,6 +51,12 @@ CPPFLAGS_MNH = -DMNH
# #
TARGET_GRIBEX=linux TARGET_GRIBEX=linux
CNAME_GRIBEX=f95 CNAME_GRIBEX=f95
#
# LIBTOOLS flags
#
#if MNH_TOOLS exists => compile the tools
MNH_TOOLS = yes
#
########################################################## ##########################################################
# # # #
# Source of MESONH PACKAGE Distribution # # Source of MESONH PACKAGE Distribution #
......
...@@ -98,6 +98,12 @@ endif ...@@ -98,6 +98,12 @@ endif
# #
TARGET_GRIBEX=linux TARGET_GRIBEX=linux
CNAME_GRIBEX=_gfortran CNAME_GRIBEX=_gfortran
#
# LIBTOOLS flags
#
#if MNH_TOOLS exists => compile the tools
MNH_TOOLS = yes
#
########################################################## ##########################################################
# # # #
# Source of MESONH PACKAGE Distribution # # Source of MESONH PACKAGE Distribution #
......
...@@ -75,6 +75,12 @@ CPPFLAGS_MNH = -DAINT=INT -DAMOD=MOD -DMNH ...@@ -75,6 +75,12 @@ CPPFLAGS_MNH = -DAINT=INT -DAMOD=MOD -DMNH
# #
TARGET_GRIBEX=linux TARGET_GRIBEX=linux
CNAME_GRIBEX=g95 CNAME_GRIBEX=g95
#
# LIBTOOLS flags
#
#if MNH_TOOLS exists => compile the tools
MNH_TOOLS = yes
#
########################################################## ##########################################################
# # # #
# Source of MESONH PACKAGE Distribution # # Source of MESONH PACKAGE Distribution #
......
...@@ -91,6 +91,12 @@ CNAME_GRIBEX=_gfortran ...@@ -91,6 +91,12 @@ CNAME_GRIBEX=_gfortran
# Netcdf/HDF5 flags # Netcdf/HDF5 flags
# #
HDF_CONF= CFLAGS=-std=c99 HDF_CONF= CFLAGS=-std=c99
#
# LIBTOOLS flags
#
#if MNH_TOOLS exists => compile the tools
MNH_TOOLS = yes
#
########################################################## ##########################################################
# # # #
# Source of MESONH PACKAGE Distribution # # Source of MESONH PACKAGE Distribution #
......
...@@ -126,6 +126,12 @@ endif ...@@ -126,6 +126,12 @@ endif
# #
TARGET_GRIBEX=linux TARGET_GRIBEX=linux
CNAME_GRIBEX=ifort CNAME_GRIBEX=ifort
#
# LIBTOOLS flags
#
#if MNH_TOOLS exists => compile the tools
MNH_TOOLS = yes
#
########################################################## ##########################################################
# # # #
# Source of MESONH PACKAGE Distribution # # Source of MESONH PACKAGE Distribution #
......
...@@ -51,6 +51,12 @@ CPPFLAGS_MNH = -DAINT=INT -DAMOD=MOD -DMNH ...@@ -51,6 +51,12 @@ CPPFLAGS_MNH = -DAINT=INT -DAMOD=MOD -DMNH
# #
TARGET_GRIBEX=linux TARGET_GRIBEX=linux
CNAME_GRIBEX=pathf95 CNAME_GRIBEX=pathf95
#
# LIBTOOLS flags
#
#if MNH_TOOLS exists => compile the tools
MNH_TOOLS = yes
#
########################################################## ##########################################################
# # # #
# Source of MESONH PACKAGE Distribution # # Source of MESONH PACKAGE Distribution #
......
...@@ -109,7 +109,12 @@ CPPFLAGS_MNH = -DMNH -DMNH_PGI ...@@ -109,7 +109,12 @@ CPPFLAGS_MNH = -DMNH -DMNH_PGI
# #
TARGET_GRIBEX=linux TARGET_GRIBEX=linux
CNAME_GRIBEX=_pgf77 CNAME_GRIBEX=_pgf77
#
# LIBTOOLS flags
#
#if MNH_TOOLS exists => compile the tools
MNH_TOOLS = yes
#
########################################################## ##########################################################
# # # #
# Source of MESONH PACKAGE Distribution # # Source of MESONH PACKAGE Distribution #
......
...@@ -97,6 +97,12 @@ CPPFLAGS_MNH = -DMNH ...@@ -97,6 +97,12 @@ CPPFLAGS_MNH = -DMNH
#ARCH_GRIBEX=NEC #ARCH_GRIBEX=NEC
TARGET_GRIBEX=NEC TARGET_GRIBEX=NEC
CNAME_GRIBEX=sxmpif90 CNAME_GRIBEX=sxmpif90
#
# LIBTOOLS flags
#
#if MNH_TOOLS exists => compile the tools
#MNH_TOOLS = no
#
########################################################## ##########################################################
# # # #
# Source of MESONH PACKAGE Distribution # # Source of MESONH PACKAGE Distribution #
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment