tparallelio.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
---
tparallelio.sh (772B)
---
1 #!/bin/bash
2
3 set -x
4 set -e
5 set -u
6
7 # Install NCAR ParallelIO in ~/local/parallelio
8 # using parallel NetCDF and PnetCDF installed in ~/local/netcdf
9 # and ~/local/pnetcdf. Uses ~/local/build/parallelio
10 # as a build directory.
11
12 netcdf_prefix=~/local/netcdf
13 pnetcdf_prefix=~/local/pnetcdf
14
15 url=https://github.com/NCAR/ParallelIO.git
16 build=~/local/build/parallelio
17 prefix=$HOME/local/parallelio
18
19 rm -rf ${build}
20 mkdir -p ${build}/build ${build}/sources
21
22 git clone --depth=1 -b master ${url} ${build}/sources
23
24 pushd ${build}/build
25
26 CC=mpicc cmake \
27 -DCMAKE_C_FLAGS="-fPIC" \
28 -DCMAKE_INSTALL_PREFIX=${prefix} \
29 -DNetCDF_PATH=${netcdf_prefix} \
30 -DPnetCDF_PATH=${pnetcdf_prefix} \
31 -DPIO_ENABLE_FORTRAN=0 \
32 -DPIO_ENABLE_TIMING=0 \
33 ${build}/sources
34
35 make install
36
37 popd