Skip to content

Commit e43aa6c

Browse files
committed
Merge remote-tracking branch 'origin/main' into simo-11-patch-1
2 parents 2596f5f + 0ccd45f commit e43aa6c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+4288
-6490
lines changed
Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
11
name: Install dependencies
22

3-
43
runs:
54
using: composite
65
steps:
76
- name: Install apt dependencies and upgrade pip
87
shell: bash -el {0}
98
run: |
109
apt-get update && apt-get install -y libgl1-mesa-glx libxrender1 xvfb
11-
python3 -m pip install -U pip
12-
# Install `h5py` master branch
13-
# https://github.com/hl5py/h5py/issues/2222
14-
- name: Install h5py and pip requirements
15-
shell: bash -el {0}
16-
run: |
17-
python3 -m pip install --no-binary=h5py git+https://github.com/h5py/h5py@master
10+
python3 -m pip install -U pip

.github/workflows/book_stable.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ env:
1515
jobs:
1616
build-book:
1717
runs-on: ubuntu-latest
18-
container: ghcr.io/fenics/dolfinx/lab:v0.6.0-r1
18+
container: ghcr.io/fenics/dolfinx/lab:v0.7.2
1919

2020
env:
2121
PYVISTA_TRAME_SERVER_PROXY_PREFIX: "/proxy/"
2222
PYVISTA_TRAME_SERVER_PROXY_ENABLED: "True"
2323
PYVISTA_OFF_SCREEN: false
24-
PYVISTA_JUPYTER_BACKEND: "panel"
24+
PYVISTA_JUPYTER_BACKEND: "html"
2525

2626
steps:
2727
- uses: actions/checkout@v4
@@ -30,7 +30,7 @@ jobs:
3030
uses: ./.github/actions/install-dependencies
3131

3232
- name: Install book deps
33-
run: python3 -m pip install -r docker/requirements.txt
33+
run: python3 -m pip install --no-binary=h5py .
3434

3535
- name: Build the book
3636
run: jupyter-book build . -W

.github/workflows/deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
uses: actions/checkout@v4
4545

4646
- name: Setup Pages
47-
uses: actions/configure-pages@v2
47+
uses: actions/configure-pages@v4
4848

4949
- name: Download docs artifact
5050
uses: actions/download-artifact@v3
@@ -53,10 +53,10 @@ jobs:
5353
path: "./public"
5454

5555
- name: Upload page artifact
56-
uses: actions/upload-pages-artifact@v1
56+
uses: actions/upload-pages-artifact@v2
5757
with:
5858
path: "./public"
5959

6060
- name: Deploy coverage report to GH Pages
6161
id: deployment
62-
uses: actions/deploy-pages@v1
62+
uses: actions/deploy-pages@v3

.github/workflows/publish_docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: Build and push Docker image
4545
uses: docker/build-push-action@v3
4646
with:
47-
context: ./docker
47+
context: .
4848
push: true
4949
file: docker/Dockerfile
5050
platforms: linux/amd64,linux/arm64

.github/workflows/test_nightly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
test-nightly:
1818
# The type of runner that the job will run on
1919
runs-on: ubuntu-latest
20-
container: dolfinx/lab:nightly
20+
container: ghcr.io/fenics/dolfinx/lab:nightly
2121

2222
env:
2323
HDF5_MPI: "ON"
@@ -42,7 +42,7 @@ jobs:
4242
uses: ./.github/actions/install-dependencies
4343

4444
- name: Install requirements
45-
run: python3 -m pip install --no-cache-dir -r docker/requirements.txt --upgrade
45+
run: python3 -m pip install --no-cache-dir --no-binary=h5py . --upgrade
4646

4747
- name: Test complex notebooks in parallel
4848
run: |

.github/workflows/test_stable.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
test:
2121
# The type of runner that the job will run on
2222
runs-on: ubuntu-latest
23-
container: ghcr.io/fenics/dolfinx/lab:v0.6.0-r1
23+
container: ghcr.io/fenics/dolfinx/lab:v0.7.2
2424
env:
2525
PYVISTA_OFF_SCREEN: true
2626

@@ -32,12 +32,12 @@ jobs:
3232

3333
- name: Install additional deps
3434
run: |
35-
python3 -m pip install -r docker/requirements.txt
35+
python3 -m pip install --no-binary=h5py .
3636
3737
- name: Test complex notebooks in parallel
3838
run: |
3939
export PKG_CONFIG_PATH=/usr/local/dolfinx-complex/lib/pkgconfig:$PKG_CONFIG_PATH
40-
export PETSC_ARCH=linux-gnu-complex-32
40+
export PETSC_ARCH=linux-gnu-complex128-32
4141
export PYTHONPATH=/usr/local/dolfinx-complex/lib/python3.10/dist-packages:$PYTHONPATH
4242
export LD_LIBRARY_PATH=/usr/local/dolfinx-complex/lib:$LD_LIBRARY_PATH
4343
python3 -c "from pyvista import start_xvfb; start_xvfb(0.1)"

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ _build
88
**/.cache
99
*.png
1010
*.pvtu
11-
*.msh
11+
*.msh
12+
*.bp

Changelog.md

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,32 @@
11
# Changelog
22

3-
## main
4-
- No changes
3+
## v0.7.2
4+
- Change pyvista backend to `html`, using Pyvista main branch
5+
- Using DOLFINx v0.7.2 https://github.com/FEniCS/dolfinx/releases/tag/v0.7.2 as base
6+
7+
## v0.7.1
8+
- No API changes, release due to various bug-fixes from the 0.7.0 release, see:
9+
https://github.com/FEniCS/dolfinx/releases/tag/v0.7.1 for more information
10+
11+
## v0.7.0
12+
13+
- Renamed `dolfinx.graph.create_adjacencylist` to `dolfinx.graph.adjacencylist`
14+
- Renamed `dolfinx.plot.create_vtk_mesh` to `dolfinx.plot.vtk_mesh`
15+
- `dolfinx.geometry.BoundingBoxTree` has been changed to `dolfinx.geometry.bb_tree`
16+
- `create_mesh` with Meshio has been modified. Note that you now need to pass dtype `np.int32` to the cell_data.
17+
- Update dolfinx petsc API. Now one needs to explicitly import `dolfinx.fem.petsc` and `dolfinx.fem.nls`, as PETSc is no longer a strict requirement. Replace `petsc4py.PETSc.ScalarType` with `dolfinx.default_scalar_type` in demos where we do not use `petsc4py` explicitly.
518

619
## v0.6.0
20+
721
- Remove `ipygany` and `pythreejs` as plotting backends. Using `panel`.
822
- Add gif-output to [chapter2/diffusion_code] and [chapter2/hyperelasticity].
923
- Replace `dolfinx.fem.Function.geometric_dimension` with `len(dolfinx.fem.Function)`
1024
- Improve [chapter2/ns_code2] to have better splitting scheme and density.
1125
- Improve mesh quality in [chapter3/em].
1226
- `jit_params` and `form_compiler_params` renamed to `*_options`.
1327

14-
1528
## v0.5.0
29+
1630
- Using new GMSH interface in DOLFINx (`dolfinx.io.gmshio`) in all demos using GMSH
1731
- Added a section on custom Newton-solvers, see [chapter4/newton-solver].
1832
- Various minor DOLFINx API updates. `dolfinx.mesh.compute_boundary_facets` -> `dolfinx.mesh.exterior_facet_indices` with slightly different functionality. Use `dolfinx.mesh.MeshTagsMetaClass.find` instead of `mt.indices[mt.values==value]`.
@@ -21,9 +35,11 @@
2135
- Add example of how to use `DOLFINx` in complex mode, see [chapter1/complex_mode].
2236

2337
## 0.4.1
38+
2439
- No changes
2540

2641
## 0.4.0 (05.02.2021)
42+
2743
- All `pyvista` plotting has been rewritten to use `ipygany` and `pythreejs` as well as using a cleaner interface.
2844
- `dolfinx.plot.create_vtk_topology` has been renamed to `dolfinx.plot.create_vtk_mesh` and can now be directly used as input to `pyvista.UnstructuredGrid`.
2945
- `dolfinx.fem.Function.compute_point_values` has been deprecated. Interpolation into a CG-1 is now the way of getting vertex values.
@@ -34,14 +50,14 @@
3450
- Various API changes relating to the import structure of DOLFINx
3551

3652
## 0.3.0 (09.09.2021)
53+
3754
- Major improvements in [Form compiler parameters](chapter4/compiler_parameters), using pandas and seaborn for visualization of speed-ups gained using form compiler parameters.
3855
- API change: `dolfinx.cpp.la.scatter_forward(u.x)` -> `u.x.scatter_forward`
3956
- Various plotting updates due to new version of pyvista.
4057
- Updating of the [Hyperelasticity demo](chapter2/hyperelasticity), now using DOLFINx wrappers to create the non-linear problem
4158
- Internal updates due to bumping of jupyter-book versions
4259
- Various typos and capitalizations fixed by @mscroggs in [PR 35](https://github.com/jorgensd/dolfinx-tutorial/pull/35).
4360

44-
45-
4661
## 0.1.0 (11.05.2021)
47-
- First tagged release of DOLFINx Tutorial, compatible with [DOLFINx 0.1.0](https://github.com/FEniCS/dolfinx/releases/tag/0.1.0).
62+
63+
- First tagged release of DOLFINx Tutorial, compatible with [DOLFINx 0.1.0](https://github.com/FEniCS/dolfinx/releases/tag/0.1.0).

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/jorgensd/dolfinx-tutorial:v0.6.0.post0
1+
FROM ghcr.io/jorgensd/dolfinx-tutorial:v0.7.2
22

33
# create user with a home directory
44
ARG NB_USER=jovyan

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,24 @@ Any code added to the tutorial should work in parallel.
1616

1717
Alternatively, if you want to add a separate chapter, a Jupyter notebook can be added to a pull request, without integrating it into the tutorial. If so, the notebook will be reviewed and modified to be included in the tutorial.
1818

19+
## Dependencies
20+
It is adviced to use a pre-installed version of DOLFINx, for instance through conda or docker. Remaining dependencies can be installed with
21+
```bash
22+
python3 -m pip install --no-binary=h5py -e .
23+
```
24+
1925
# Docker images
2026
Docker images for this tutorial can be found in the [packages tab](https://github.com/jorgensd/dolfinx-tutorial/pkgs/container/dolfinx-tutorial)
2127

22-
Additional requirements on top of the `dolfinx/lab:nightly` images can be found at [Dockerfile](docker/Dockerfile) and [requirements.txt](docker/requirements.txt)
28+
Additional requirements on top of the `dolfinx/lab:nightly` images can be found at [Dockerfile](docker/Dockerfile) and [pyproject.toml](./pyproject.toml)
2329

2430
##
2531
An image building DOLFINx, Basix, UFL and FFCx from source can be built using:
2632
```bash
2733
cd docker
28-
docker build -f LocalDockerfile -t local_lab_env .
34+
docker build -f ./docker/Dockerfile -t local_lab_env .
2935
```
30-
and run
36+
from the root of this repository, and run
3137
```bash
3238
docker run --rm -ti -v $(pwd):/root/shared -w /root/shared --init -p 8888:8888 local_lab_env
3339
```

_config.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ logo: fenics_logo.png
88
# Force re-execution of notebooks on each build.
99
# See https://jupyterbook.org/content/execute.html
1010
execute:
11-
execute_notebooks: force
11+
execute_notebooks: cache
1212

1313
# Set timeout for any example to 20 minutes
1414
timeout: 1800
@@ -35,6 +35,11 @@ sphinx:
3535
config:
3636
html_last_updated_fmt: "%b %d, %Y"
3737
suppress_warnings: ["mystnb.unknown_mime_type"]
38+
39+
# To avoid warning about default changing due to
40+
# https://github.com/pydata/pydata-sphinx-theme/issues/1492
41+
# html_theme_options:
42+
# navigation_with_keys: false
3843
parse:
3944
myst_enable_extensions:
4045
- "amsmath"

0 commit comments

Comments
 (0)