Skip to content

Commit 027e1bf

Browse files
authored
Merge pull request #11 from mhuguesaws/bugfix/#10_netcdf_url
Bugfix/#10 netcdf url
2 parents e0b15eb + 84225a5 commit 027e1bf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

scripts/install/netcdf_c_install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ NETCDF_C_VERSION="4.7.4"
2323
DEPENDS_ON="hdf5-parallel/1.10.6 pnetcdf/1.12.2"
2424

2525
NETCDF_C_ARCHIVE="netcdf-c-${NETCDF_C_VERSION}.tar.gz"
26-
NETCDF_C_URL="https://www.unidata.ucar.edu/downloads/netcdf/ftp/${NETCDF_C_ARCHIVE}"
26+
NETCDF_C_URL="https://codeload.github.com/Unidata/netcdf-c/tar.gz/refs/tags/v${NETCDF_C_VERSION}"
2727

2828
ENVIRONMENT="intel/2021.3.0;intel/2021.3.0 gcc/10.2.0;openmpi/4.1.0"
2929

@@ -94,7 +94,7 @@ do
9494
# Retrieve archive
9595
if [ ! -f ${NETCDF_C_ARCHIVE} ]; then
9696
echo "Download archive"
97-
curl -O ${NETCDF_C_URL}
97+
curl -o ${NETCDF_C_ARCHIVE} ${NETCDF_C_URL}
9898
fi
9999

100100
# Check if archive already exist untar

scripts/install/netcdf_fortran_install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ NETCDF_FORTRAN_VERSION="4.5.3"
2323
DEPENDS_ON="hdf5-parallel/1.10.6 netcdf-c/4.7.4"
2424

2525
NETCDF_FORTRAN_ARCHIVE="netcdf-fortran-${NETCDF_FORTRAN_VERSION}.tar.gz"
26-
NETCDF_FORTRAN_URL="https://www.unidata.ucar.edu/downloads/netcdf/ftp/${NETCDF_FORTRAN_ARCHIVE}"
26+
NETCDF_FORTRAN_URL="https://codeload.github.com/Unidata/netcdf-fortran/tar.gz/refs/tags/v${NETCDF_FORTRAN_VERSION}"
2727

2828
ENVIRONMENT="intel/2021.3.0;intel/2021.3.0 gcc/10.2.0;openmpi/4.1.0"
2929

@@ -94,7 +94,7 @@ do
9494
# Retrieve archive
9595
if [ ! -f ${NETCDF_FORTRAN_ARCHIVE} ]; then
9696
echo "Download archive"
97-
curl -O ${NETCDF_FORTRAN_URL}
97+
curl -o ${NETCDF_FORTRAN_ARCHIVE} ${NETCDF_FORTRAN_URL}
9898
fi
9999

100100
# Check if archive already exist untar

0 commit comments

Comments
 (0)