tnetcdf.sh - pism - [fork] customized build of PISM, the parallel ice sheet model (tillflux branch)
(HTM) git clone git://src.adamsgaard.dk/pism
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
tnetcdf.sh (704B)
---
1 #!/bin/bash
2
3 set -u
4 set -e
5 set -x
6
7 # Install parallel NetCDF using parallel HDF5 in ~/local/hdf5 and
8 # ~/local/build/netcdf as a build directory.
9
10 hdf5=~/local/hdf5
11
12 version=4.7.3
13 prefix=$HOME/local/netcdf
14 build_dir=~/local/build/netcdf
15 url=ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-c-${version}.tar.gz
16
17 mkdir -p ${build_dir}
18 pushd ${build_dir}
19
20 wget -nc ${url}
21 tar zxf netcdf-c-${version}.tar.gz
22
23 pushd netcdf-c-${version}
24
25 CC=mpicc CPPFLAGS=-I${hdf5}/include LDFLAGS=-L${hdf5}/lib ./configure \
26 --enable-netcdf4 \
27 --disable-dap \
28 --prefix=${prefix} 2>&1 | tee netcdf_configure.log
29
30 make all 2>&1 | tee netcdf_compile.log
31 make install 2>&1 | tee netcdf_install.log
32
33 popd
34 popd