Removed netcdf and added netcdf-c

This commit is contained in:
Cormac Garvey 2020-04-20 13:06:19 -05:00
Родитель 47c26b0a9e
Коммит 8c6522ddc1
2 изменённых файлов: 4 добавлений и 6 удалений

Просмотреть файл

@ -25,7 +25,7 @@ EOF
sudo yum install -y jasper-devel
sudo yum install -y libpng-devel
spack install netcdf-fortran+mpi ^netcdf~parallel-netcdf ^hdf5+fortran %gcc@9.2.0 ^openmpi@${OPENMPI_VER}
spack install netcdf-fortran+mpi ^hdf5+fortran %gcc@9.2.0 ^openmpi@${OPENMPI_VER}
source ${SPACK_ROOT}/share/spack/setup-env.sh
mkdir -p ${APP_DIR}
@ -34,7 +34,6 @@ wget https://github.com/wrf-model/WRF/archive/v${APP_VERSION}.tar.gz
tar xvf v${APP_VERSION}.tar.gz
spack load netcdf-fortran^openmpi
spack load netcdf^openmpi
spack load hdf5^openmpi
spack load perl
module load mpi/openmpi-${OPENMPI_VER}
@ -43,7 +42,7 @@ module load gcc-9.2.0
export HDF5=$(spack location -i hdf5^openmpi)
export NETCDF=$(spack location -i netcdf-fortran^openmpi)
NETCDF_C=$(spack location -i netcdf^openmpi)
NETCDF_C=$(spack location -i netcdf-c^openmpi)
ln -sf $NETCDF_C/include/* $NETCDF/include/
ln -sf $NETCDF_C/lib/* $NETCDF/lib/
ln -sf $NETCDF_C/lib/pkgconfig/* $NETCDF/lib/pkgconfig

Просмотреть файл

@ -25,7 +25,7 @@ EOF
sudo yum install -y jasper-devel
sudo yum install -y libpng-devel
spack install netcdf-fortran+mpi ^netcdf~parallel-netcdf ^hdf5+fortran %gcc@9.2.0 ^openmpi@${OPENMPI_VER}
spack install netcdf-fortran+mpi ^hdf5+fortran %gcc@9.2.0 ^openmpi@${OPENMPI_VER}
source ${SPACK_ROOT}/share/spack/setup-env.sh
mkdir -p ${APP_DIR}
@ -34,7 +34,6 @@ wget https://github.com/wrf-model/WRF/archive/v${APP_VERSION}.tar.gz
tar xvf v${APP_VERSION}.tar.gz
spack load netcdf-fortran^openmpi
spack load netcdf^openmpi
spack load hdf5^openmpi
spack load perl
module load mpi/openmpi-${OPENMPI_VER}
@ -43,7 +42,7 @@ module load gcc-9.2.0
export HDF5=$(spack location -i hdf5^openmpi)
export NETCDF=$(spack location -i netcdf-fortran^openmpi)
NETCDF_C=$(spack location -i netcdf^openmpi)
NETCDF_C=$(spack location -i netcdf-c^openmpi)
ln -sf $NETCDF_C/include/* $NETCDF/include/
ln -sf $NETCDF_C/lib/* $NETCDF/lib/
ln -sf $NETCDF_C/lib/pkgconfig/* $NETCDF/lib/pkgconfig