Skip to content

Commit

Permalink
Add more targets to make it easier to create ISMIP-HOM plots
Browse files Browse the repository at this point in the history
  • Loading branch information
ckhroulev committed Oct 30, 2020
1 parent 0aa0aed commit cee4149
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
9 changes: 8 additions & 1 deletion test/ismip-hom/Makefile
Expand Up @@ -3,8 +3,15 @@ all: pism ismiphom plot
pism:
mpiexec -n 2 python3 run-ismiphom.py -Mx 101 -My 101 -snes_monitor -ksp_monitor -pc_type mg -pc_mg_levels 2 -stress_balance.blatter.coarsening_factor 4 -mg_coarse_pc_type gamg

ismiphom:
ismiphom: ismip_all
python3 convert-ismiphom.py

tc-2-95-2008-supplement.zip:
wget -nc "https://tc.copernicus.org/articles/2/95/2008/tc-2-95-2008-supplement.zip"

ismip_all: tc-2-95-2008-supplement.zip
unzip -n $^
unzip -n tc-2007-0019-sp2.zip

plot:
python3 plot-ismiphom.py
10 changes: 4 additions & 6 deletions test/ismip-hom/README.rst
Expand Up @@ -3,16 +3,14 @@
This directory contains scripts that run ISMIP-HOM_ experiments A-D and plot resulting
surface ice velocities at y=0.25 (in scaled coordinates).

In short, download and unpack the ISMIP-HOM_ supplement, then run:
Run

.. code::
python3 run-ismiphom.py
make all
ln -s path/to/ismip_all .
python3 convert-ismiphom.py
python3 plot-ismiphom.py
to download and unpack the ISMIP-HOM_ supplement, run PISM, and produce ice velocity
figures (including the one below).

The script `run-ismiphom.py` uses PISM's Python bindings to run the Blatter solver in
PISM. See the top of this script for details.
Expand Down

0 comments on commit cee4149

Please sign in to comment.