Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Installs just fine, but one regression test fails
- Loading branch information
Showing
2 changed files
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,35 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
set -e | ||
|
||
prefix=$HOME/local/ | ||
build_dir=$HOME/local/build/pism | ||
|
||
mkdir -p ${build_dir} | ||
pushd ${build_dir} | ||
|
||
git clone https://github.com/pism/pism.git . | ||
# FIXME: remove "-b dev" | ||
git clone --depth=1 -b dev https://github.com/pism/pism.git . | ||
|
||
mkdir -p build | ||
pushd build | ||
|
||
export PETSC_DIR=/usr/lib/petsc | ||
|
||
CC="mpicc" CXX="mpicxx" cmake \ | ||
CC=mpicc CXX=mpicxx cmake \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_INSTALL_PREFIX=${prefix}/pism \ | ||
-DCMAKE_C_FLAGS="-march=native -mtune=native" \ | ||
-DCMAKE_CXX_FLAGS="-march=native -mtune=native" \ | ||
-DPism_BUILD_EXTRA_EXECS=YES \ | ||
-DPython_ADDITIONAL_VERSIONS=3 \ | ||
-DPism_BUILD_PYTHON_BINDINGS=YES \ | ||
-DPism_USE_PNETCDF=YES \ | ||
-DPism_USE_PROJ=YES \ | ||
.. | ||
|
||
make -j8 all | ||
PYTHONPATH=$PWD/site-packages:$PYTHONPATH ctest --output-on-failure | ||
make install | ||
popd | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,4 @@ USER builder | |
ENV PETSC_DIR="/usr/lib/petsc" | ||
|
||
COPY pism.sh /tmp/ | ||
RUN /tmp/pism.sh | ||
RUN bash /tmp/pism.sh |