Skip to content

Commit 837f199

Browse files
authored
Update notebooks (#484)
* fixed default ipyparallel setup and sdInfo regressions * updated stack (to update mpich and sphinx) * updating stack to add imagesize * removed errors from sphing doc generation * Refactor the tutorial directory. * simplified handling of hit remotes * Added a Navier-Stokes driven cavity example. * added Makefile targets for setting up remote src and bld caches * fix Makefile for when lsb_release not present * updated stack to fix pycgal fail * fix mprans.PresInc numerical flux and Jacobian * updated stack to fix pycgal build failure * Added streamlines to NSE solution plots. * updated stack and removed adjoint from PresInc * updated hashdist that supports pushing xz archives * updated stack and cleaned up CI support * removed reference to update_notebooks branch in Dockerfile
1 parent 76a6aad commit 837f199

40 files changed

+1829
-1731
lines changed

.hashdist_default

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
95601061658628ad9da3be1a5538681ed1092634
1+
3b554016f6f539fdd2c713595f1c9ad8a3e9c179
2+
23

34

45

.hashstack_default

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
2ca88aa0ef486b86ad45191ea56c72ce641f8dda
1+
f107fbfbfb8f3a87607929c8ee3901bef3a1447a
2+
3+
4+
5+
6+
7+
28

39

410

.shippable-profile.yaml

Lines changed: 0 additions & 81 deletions
This file was deleted.

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ addons:
1818
- libssl-dev
1919

2020
before_install:
21-
- wget https://dl.dropboxusercontent.com/u/26353144/hashdist_trusty.tgz
22-
- tar xzf hashdist_trusty.tgz
23-
- mv .hashdist $HOME
2421
- pip install pyliblzma
2522

2623
install:
@@ -30,6 +27,9 @@ install:
3027
- make hashdist
3128
- make stack
3229
- make stack/default.yaml
30+
- ./hashdist/bin/hit init-home
31+
- ./hashdist/bin/hit remote add https://dl.dropboxusercontent.com/u/26353144/hashdist_src --objects="source"
32+
- ./hashdist/bin/hit remote add https://dl.dropboxusercontent.com/u/26353144/hashdist_ubuntu_14_04 --objects="build"
3333
- FC=gfortran make install
3434
- export PATH=$PWD/linux2/bin:$PATH
3535
- export SSL_CERT_DIR=/etc/ssl/certs

.travisprofile.yml

Lines changed: 0 additions & 81 deletions
This file was deleted.

Dockerfile

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,24 +92,20 @@ RUN useradd -m -s /bin/bash -N -u $NB_UID $NB_USER
9292

9393
RUN mkdir /home/$NB_USER/.jupyter && \
9494
mkdir /home/$NB_USER/.local && \
95-
mkdir /home/$NB_USER/.hashdist && \
9695
echo "cacert=/etc/ssl/certs/ca-certificates.crt" > /home/$NB_USER/.curlrc
9796

98-
ADD https://dl.dropboxusercontent.com/u/26353144/hashdist_config_jovyan.yaml /home/$NB_USER/.hashdist/config.yaml
99-
10097
RUN chown -R $NB_USER:users /home/$NB_USER
10198

10299
USER jovyan
103100

104-
RUN ls /home/$NB_USER/.hashdist && \
105-
cat /home/$NB_USER/.hashdist/config.yaml
106-
107101
WORKDIR /home/$NB_USER
108102

109-
RUN cat /home/$NB_USER/.hashdist/config.yaml && \
110-
git clone https://github.com/erdc-cm/proteus && \
103+
RUN git clone https://github.com/erdc-cm/proteus && \
111104
cd proteus && \
112105
make hashdist stack stack/default.yaml && \
106+
./hashdist/bin/hit init-home && \
107+
./hashdist/bin/hit remote add https://dl.dropboxusercontent.com/u/26353144/hashdist_src --objects="source" && \
108+
./hashdist/bin/hit remote add https://dl.dropboxusercontent.com/u/26353144/hashdist_debian_jessie --objects="build" && \
113109
cd stack && \
114110
../hashdist/bin/hit build default.yaml -v
115111

Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,16 @@ hashdist:
120120
@echo "No hashdist found. Cloning hashdist from GitHub"
121121
git clone https://github.com/hashdist/hashdist.git
122122
cd hashdist && git checkout ${HASHDIST_DEFAULT_VERSION}
123+
124+
hashdist_src:
125+
@echo "Trying to add hashdist source cache"
126+
./hashdist/bin/hit remote add https://dl.dropboxusercontent.com/u/26353144/hashdist_src --objects="source"
127+
128+
hashdist_bld:
129+
@echo "Trying to add hashdist build cache for your arch"
130+
HASHSTACK_BLD = $(shell lsb_release -ir | python -c "import sys; rel=dict((k.split(':')[0].split()[0],k.split(':')[1].strip().replace('.','_').lower()) for k in sys.stdin.readlines()); print '{Distributor}_{Release}'.format(**rel)")
131+
./hashdist/bin/hit remote add https://dl.dropboxusercontent.com/u/26353144/hashdist_${HASHSTACK_BLD} --objects="build"
132+
123133
stack:
124134
@echo "No stack found. Cloning stack from GitHub"
125135
git clone https://github.com/hashdist/hashstack.git stack
@@ -297,3 +307,8 @@ jupyter:
297307
jupyter nbextension install --py --sys-prefix rise
298308
jupyter nbextension enable --py --sys-prefix rise
299309
jupyter dashboards quick-setup --sys-prefix
310+
jupyter nbextension install --sys-prefix --py ipyparallel
311+
jupyter nbextension enable --sys-prefix --py ipyparallel
312+
jupyter serverextension enable --sys-prefix --py ipyparallel
313+
ipython profile create mpi --parallel
314+
echo "c.IPClusterEngines.engine_launcher_class = 'MPI'" >> ${HOME}/.ipython/profile_mpi/ipcluster_config.py

doc/Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ source/api/modules.rst:
5959
sphinx-apidoc --output-dir=source/api ../proteus --separate -M
6060

6161
$(BUILDDIR)/capi/html/files.html:
62-
-mkdir -p build/html/capi
6362
doxygen
64-
cp doxygenIndexRedirect.html build/html/capi/html/index.html
6563

6664
dirhtml:
6765
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml

doc/source/_templates/layout.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{% set theme_css_files = [] %}
44
{% if theme_bootstrap_version == "3" %}
5-
{% set bootstrap_version, bootstrap_additional_css, navbar_version = "3.3.4", "theme", "" %}
5+
{% set bootstrap_version, bootstrap_additional_css, navbar_version = "3.3.6", "theme", "" %}
66
{% set bs_span_prefix = "col-md-" %}
77
{% else %}
88
{% set bootstrap_version, bootstrap_additional_css, navbar_version = "2.3.2", "responsive", "-2" %}
@@ -104,12 +104,12 @@
104104
style="height:1in;"> A Python toolkit for computational methods and simulation</p>
105105
<div class="btn-group" role="group">
106106
<a class="btn btn-success"
107-
href="https://github.com/erdc-cm/proteus/archive/v1.2.0.tar.gz">
107+
href="https://github.com/erdc-cm/proteus/archive/1.2.0.tar.gz">
108108
<span class="glyphicon glyphicon-download"></span> Download
109109
</a>
110110
<button type="button" class="btn btn-success dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
111111
<ul class="dropdown-menu">
112-
<li><a https://github.com/erdc-cm/proteus/archive/v1.2.0.tar.gz">Version 1.2.0</a></li>
112+
<li><a https://github.com/erdc-cm/proteus/archive/1.2.0.tar.gz">Version 1.2.0</a></li>
113113
</ul>
114114
</div>
115115
</div>

doc/source/conf.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def linkcode_resolve(domain, info):
9797

9898
# General information about the project.
9999
project = u'Proteus'
100-
copyright = u'2016, The Proteus Team'
100+
copyright = u'2017, The Proteus Team'
101101

102102
# The version info for the project you're documenting, acts as replacement for
103103
# |version| and |release|, also used in various other places throughout the
@@ -452,5 +452,4 @@ def linkcode_resolve(domain, info):
452452

453453
graphviz_output_format = 'svg'
454454

455-
#mathjax_path = "https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
456455
mathjax_pth = "https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTM"

0 commit comments

Comments
 (0)