From 1375682bebd3cb9aab223638a0b3ebd6aabf5e99 Mon Sep 17 00:00:00 2001
From: Juan Escobar <escj@aero.obs-mip.fr>
Date: Fri, 18 Jun 2021 17:43:54 +0200
Subject: [PATCH] Juan 18/06/2021: configure, upgrade VERSION_ECRAD to 1.4.0

---
 src/configure | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/configure b/src/configure
index f40aedcc6..e913daf31 100755
--- a/src/configure
+++ b/src/configure
@@ -29,7 +29,7 @@ export VERSION_OASIS=${VERSION_OASIS:-"mct_v3"}
 export VERSION_TOY=${VERSION_TOY:-"v1-0"}
 export VERSION_NCL=${VERSION_NCL:-"ncl-6.4.0"}
 
-export VERSION_ECRAD=${VERSION_ECRAD:-"1.0.1"}
+export VERSION_ECRAD=${VERSION_ECRAD:-"1.4.0"}
 export VER_ECRAD=${VERSION_ECRAD//./}
 
 export LEN_HREC=${LEN_HREC:-16}
@@ -559,6 +559,12 @@ if [ "x${MNH_GRIBAPI}" == "xyes" ] ; then
 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 - )
 fi
+#
+#  Install ECRAD 1.4.0 if MNH_ECRAD=1 & VERSION_ECRAD=1.4.0
+#
+if [ "x${MNH_ECRAD}" == "x1" ] && [ "x${VERSION_ECRAD}" == "x1.4.0" ] ; then
+( cd $LOCAL/src/LIB/RAD ; [ ! -d ecrad-1.4.0 ] && tar xvfz ecrad-1.4.0.tar.gz )
+fi
 ##########################################################
 #                                                        #
 #      RESUME                                            #
-- 
GitLab