File tree Expand file tree Collapse file tree 5 files changed +14
-8
lines changed Expand file tree Collapse file tree 5 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 35
35
pushd pnetcdf-${PNETCDF_VERSION}
36
36
./configure --prefix $NETCDF_DIR --enable-shared --disable-fortran --disable-cxx
37
37
make -j 2
38
- make install
38
+ sudo make install
39
39
popd
40
40
echo "Download and build netCDF version ${NETCDF_VERSION}"
41
41
wget https://downloads.unidata.ucar.edu/netcdf-c/${NETCDF_VERSION}/netcdf-c-${NETCDF_VERSION}.tar.gz
46
46
export LIBS="-lhdf5_mpich_hl -lhdf5_mpich -lm -lz"
47
47
./configure --prefix $NETCDF_DIR --enable-netcdf-4 --enable-shared --enable-dap --enable-parallel4 $NETCDF_EXTRA_CONFIG
48
48
make -j 2
49
- make install
49
+ sudo make install
50
50
popd
51
51
52
52
# - name: The job has failed
Original file line number Diff line number Diff line change 35
35
autoreconf -i
36
36
./configure --prefix $NETCDF_DIR --enable-netcdf-4 --enable-shared --enable-dap --enable-parallel4
37
37
make -j 2
38
- make install
38
+ sudo make install
39
39
popd
40
40
41
41
# - name: The job has failed
Original file line number Diff line number Diff line change 6
6
runs-on : ubuntu-latest
7
7
env :
8
8
PNETCDF_VERSION : 1.12.1
9
- NETCDF_VERSION : 4.8.1
9
+ NETCDF_VERSION : 4.7.4
10
10
NETCDF_DIR : ${{ github.workspace }}/..
11
11
NETCDF_EXTRA_CONFIG : --enable-pnetcdf
12
12
CC : mpicc.mpich
@@ -35,18 +35,19 @@ jobs:
35
35
pushd pnetcdf-${PNETCDF_VERSION}
36
36
./configure --prefix $NETCDF_DIR --enable-shared --disable-fortran --disable-cxx
37
37
make -j 2
38
- make install
38
+ sudo make install
39
39
popd
40
40
echo "Download and build netCDF version ${NETCDF_VERSION}"
41
- wget https://downloads.unidata.ucar.edu/netcdf-c/${NETCDF_VERSION}/netcdf-c-${NETCDF_VERSION}.tar.gz
41
+ #wget https://downloads.unidata.ucar.edu/netcdf-c/${NETCDF_VERSION}/netcdf-c-${NETCDF_VERSION}.tar.gz
42
+ wget https://www.gfd-dennou.org/arch/netcdf/unidata-mirror/netcdf-c-${NETCDF_VERSION}.tar.gz
42
43
tar -xzf netcdf-c-${NETCDF_VERSION}.tar.gz
43
44
pushd netcdf-c-${NETCDF_VERSION}
44
45
export CPPFLAGS="-I/usr/include/hdf5/mpich -I${NETCDF_DIR}/include"
45
46
export LDFLAGS="-L${NETCDF_DIR}/lib"
46
47
export LIBS="-lhdf5_mpich_hl -lhdf5_mpich -lm -lz"
47
48
./configure --prefix $NETCDF_DIR --enable-netcdf-4 --enable-shared --enable-dap --enable-parallel4 $NETCDF_EXTRA_CONFIG
48
49
make -j 2
49
- make install
50
+ sudo make install
50
51
popd
51
52
52
53
# - name: The job has failed
Original file line number Diff line number Diff line change 69
69
init-shell : bash
70
70
create-args : >-
71
71
python=${{ matrix.python-version }}
72
- numpy cython pip pytest mpi4py hdf5=*=mpi* libnetcdf=*=mpi* cftime zlib certifi
72
+ numpy cython pip pytest openmpi mpi4py hdf5=*=mpi* libnetcdf=*=mpi* cftime zlib certifi
73
73
--channel conda-forge
74
74
75
75
- name : Install netcdf4-python with mpi
Original file line number Diff line number Diff line change 9
9
10
10
#include "nc_complex_version.h"
11
11
12
+ // to enable compilation with older versions of netcdf-c
13
+ #ifndef NC_FORMATX_NCZARR
14
+ #define NC_FORMATX_NCZARR (10)
15
+ #endif
16
+
12
17
// NOLINTBEGIN(bugprone-assignment-in-if-condition)
13
18
#define CHECK (func ) \
14
19
do { \
You can’t perform that action at this time.
0 commit comments