Skip to content
Snippets Groups Projects
Commit b645a9aa authored by RODIER Quentin's avatar RODIER Quentin
Browse files

Quentin 26/05/2021: add ECCODES_DEFINITION_PATH to make sure the compiled...

Quentin 26/05/2021: add ECCODES_DEFINITION_PATH to make sure the compiled library is used and extract only eccodes OR grib_api
parent 945e5a22
No related branches found
No related tags found
No related merge requests found
...@@ -84,6 +84,7 @@ export VERSION_GRIBAPI=${VERSION_GRIBAPI} ...@@ -84,6 +84,7 @@ export VERSION_GRIBAPI=${VERSION_GRIBAPI}
# Version of ecCodes # Version of ecCodes
# #
export VERSION_ECCODES=${VERSION_ECCODES} export VERSION_ECCODES=${VERSION_ECCODES}
export ECCODES_DEFINITION_PATH=${ECCODES_DEFINITION_PATH}
# #
# Version of Def integer # Version of Def integer
# #
......
...@@ -19,6 +19,7 @@ export VERSION_CDFCXX=${VERSION_CDFCXX:-"4.3.1"} ...@@ -19,6 +19,7 @@ export VERSION_CDFCXX=${VERSION_CDFCXX:-"4.3.1"}
export VERSION_CDFF=${VERSION_CDFF:-"4.5.3"} export VERSION_CDFF=${VERSION_CDFF:-"4.5.3"}
export VERSION_GRIBAPI=${VERSION_GRIBAPI:-"1.26.0-Source"} export VERSION_GRIBAPI=${VERSION_GRIBAPI:-"1.26.0-Source"}
export VERSION_ECCODES=${VERSION_ECCODES:-"2.18.0"} export VERSION_ECCODES=${VERSION_ECCODES:-"2.18.0"}
export ECCODES_DEFINITION_PATH=${ECCODES_DEFINITION_PATH:${SRC_MESONH}/src/LIB/eccodes-${VERSION_ECCODES}"/definitions/"}
export MNH_INT=${MNH_INT:-"4"} export MNH_INT=${MNH_INT:-"4"}
export LFI_INT=${LFI_INT:-8} export LFI_INT=${LFI_INT:-8}
export MNH_REAL=${MNH_REAL:-"8"} export MNH_REAL=${MNH_REAL:-"8"}
...@@ -552,13 +553,13 @@ if [ "x${MNH_MEGAN}" == "x1" ] ; then ...@@ -552,13 +553,13 @@ if [ "x${MNH_MEGAN}" == "x1" ] ; then
( cd $LOCAL/src/LIB ; [ ! -d MEGAN ] && tar xvfz megan.tar.gz ) ( cd $LOCAL/src/LIB ; [ ! -d MEGAN ] && tar xvfz megan.tar.gz )
fi fi
# #
# Install GRIBAPI # Install GRIBAPI or ecCodes
# #
cd $LOCAL/src/LIB ; [ ! -d grib_api-${VERSION_GRIBAPI} ] && [ -f grib_api-${VERSION_GRIBAPI}.tar.gz ] && gunzip -c grib_api-${VERSION_GRIBAPI}.tar.gz |tar -xvf - if [ "x${MNH_GRIBAPI}" == "xyes" ] ; then
# ( cd $LOCAL/src/LIB ; [ ! -d grib_api-${VERSION_GRIBAPI} ] && [ -f grib_api-${VERSION_GRIBAPI}.tar.gz ] && gunzip -c grib_api-${VERSION_GRIBAPI}.tar.gz |tar -xvf - )
# Install ecCodes else
# ( cd $LOCAL/src/LIB ; [ ! -d eccodes-${VERSION_ECCODES}-Source ] && [ -f eccodes-${VERSION_ECCODES}-Source.tar.gz ] && gunzip -c eccodes-${VERSION_ECCODES}-Source.tar.gz |tar -xvf - )
cd $LOCAL/src/LIB ; [ ! -d eccodes-${VERSION_ECCODES}-Source ] && [ -f eccodes-${VERSION_ECCODES}-Source.tar.gz ] && gunzip -c eccodes-${VERSION_ECCODES}-Source.tar.gz |tar -xvf - fi
########################################################## ##########################################################
# # # #
# RESUME # # RESUME #
......
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