Skip to content

Commit

Permalink
Installs just fine, but one regression test fails
Browse files Browse the repository at this point in the history
  • Loading branch information
ckhroulev committed May 25, 2021
1 parent 6f4ea1c commit 35dc845
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions doc/sphinx/installation/code/pism.sh
@@ -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
2 changes: 1 addition & 1 deletion docker/ubuntu-minimal/Dockerfile.in
Expand Up @@ -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

0 comments on commit 35dc845

Please sign in to comment.