Skip to content

Commit 36d9d5c

Browse files
committed
Merge remote-tracking branch 'origin/main' into release
2 parents b439d6c + 84ef93b commit 36d9d5c

Some content is hidden

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

63 files changed

+5344
-1998
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ jobs:
4141
uses: actions/configure-pages@v5
4242

4343
- name: Download docs artifact
44-
uses: actions/download-artifact@v4
44+
uses: actions/download-artifact@v5
4545
with:
4646
name: webpage
4747
path: "./public"
4848

4949
- name: Upload page artifact
50-
uses: actions/upload-pages-artifact@v3
50+
uses: actions/upload-pages-artifact@v4
5151
with:
5252
path: "./public"
5353

.github/workflows/publish_docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
- build
8686
steps:
8787
- name: Download digests
88-
uses: actions/download-artifact@v4
88+
uses: actions/download-artifact@v5
8989
with:
9090
path: ${{ runner.temp }}/digests
9191
pattern: digests-*

Changelog.md

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,23 @@
11
# Changelog
22

3+
## v0.10.0
4+
5+
- Full refactoring of {py:class}`dolfinx.fem.petsc.NonlinearProblem`, which now uses the PETSc SNES backend. See [the non-linear poisson demo](./chapter2/nonlinpoisson_code.ipynb) for details.
6+
- {py:class}`dolfinx.fem.petsc.LinearProblem` now requires an additional argument, `petsc_options_prefix`. This should be a unique string identifier for each `LinearProblem` that is created.
7+
- Change how one reads in GMSH data with `gmshio`. See [the membrane code](./chapter1/membrane_code.ipynb) for more details.
8+
- {py:meth}`dolfinx.fem.FiniteElement.interpolation_points` -> {py:attr}`dolfinx.fem.FiniteElement.interpolation_points`.
9+
- {py:mod}`dolfinx.io.gmshio` has been renamed to {py:mod}`dolfinx.io.gmsh`
10+
- Input to {py:func}`dolfinx.fem.petsc.create_vector` has changed. One should now call {py:func}`dolfinx.fem.extract_function_spaces` on the input form first.
11+
312
## v0.9.0
413

5-
- `scale` in `apply_lifting` has been renamed to `alpha`
14+
- `scale` in {py:func}`apply_lifting<dolfinx.fem.petsc.apply_lifting>` has been renamed to `alpha`
615
- Use `dolfinx.fem.Function.x.petsc_vec` as opposed to `dolfinx.fem.Function.vector`
716

817
## v0.8.0
918

10-
- Replace all `ufl.FiniteElement` and `ufl.VectorElement` with the appropriate `basix.ufl.element`
11-
- Replace `dolfinx.fem.FunctionSpace` with `dolfinx.fem.functionspace`
19+
- Replace all `ufl.FiniteElement` and `ufl.VectorElement` with the appropriate {py:func}`basix.ufl.element`
20+
- Replace {py:class}`dolfinx.fem.FunctionSpace` with {py:func}`dolfinx.fem.functionspace`
1221

1322
## v0.7.2
1423

@@ -22,12 +31,13 @@
2231

2332
## v0.7.0
2433

25-
- Renamed `dolfinx.graph.create_adjacencylist` to `dolfinx.graph.adjacencylist`
26-
- Renamed `dolfinx.plot.create_vtk_mesh` to `dolfinx.plot.vtk_mesh`
27-
- `dolfinx.geometry.BoundingBoxTree` has been changed to `dolfinx.geometry.bb_tree`
34+
- Renamed `dolfinx.graph.create_adjacencylist` to {py:func}`dolfinx.graph.adjacencylist`
35+
- Renamed `dolfinx.plot.create_vtk_mesh` to {py:func}`dolfinx.plot.vtk_mesh`
36+
- Initialization of {py:class}`dolfinx.geometry.BoundingBoxTree` has been changed to {py:func}`dolfinx.geometry.bb_tree`
2837
- `create_mesh` with Meshio has been modified. Note that you now need to pass dtype `np.int32` to the cell_data.
29-
- 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.
30-
38+
- Update dolfinx petsc API. Now one needs to explicitly import {py:mod}`dolfinx.fem.petsc` and {py:mod}`dolfinx.fem.nls`, as PETSc is no longer a strict requirement.
39+
Replace `petsc4py.PETSc.ScalarType` with `dolfinx.default_scalar_type` in demos where we do not use {py:mod}`petsc4py` explicitly.
40+
3141
## v0.6.0
3242

3343
- Remove `ipygany` and `pythreejs` as plotting backends. Using `panel`.
@@ -41,7 +51,8 @@
4151

4252
- Using new GMSH interface in DOLFINx (`dolfinx.io.gmshio`) in all demos using GMSH
4353
- Added a section on custom Newton-solvers, see [chapter4/newton-solver].
44-
- 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]`.
54+
- Various minor DOLFINx API updates. `dolfinx.mesh.compute_boundary_facets` -> {py:func}`dolfinx.mesh.exterior_facet_indices` with slightly different functionality.
55+
Use `dolfinx.mesh.MeshTagsMetaClass.find` instead of `mt.indices[mt.values==value]`.
4556
- Various numpy updates, use `np.full_like`.
4657
- Change all notebooks to use [jupytext](https://jupytext.readthedocs.io/en/latest/install.html) to automatically sync `.ipynb` with `.py` files.
4758
- Add example of how to use `DOLFINx` in complex mode, see [chapter1/complex_mode].
@@ -53,11 +64,13 @@
5364
## 0.4.0 (05.02.2021)
5465

5566
- All `pyvista` plotting has been rewritten to use `ipygany` and `pythreejs` as well as using a cleaner interface.
56-
- `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`.
67+
- `dolfinx.plot.create_vtk_topology` has been renamed to `dolfinx.plot.create_vtk_mesh` and can now be directly used as input
68+
to {py:class}`pyvista.UnstructuredGrid`.
5769
- `dolfinx.fem.Function.compute_point_values` has been deprecated. Interpolation into a CG-1 is now the way of getting vertex values.
58-
- API updates wrt. DOLFINx. `Form`->`form`, `DirichletBC`->`dirichletbc`.
70+
- Instead of initializing class with {py:class}`Form<dolfinx.fem.Form>`, use {py:func}`form<dolfinx.fem.form>`.
71+
- Instead of initializing class with {py:class}`DirichletBC<dolfinx.fem.DirichletBC>` use {py:func}`dirichletbc<dolfinx.fem.dirichletbc>`.
5972
- Updates on error computations in [Error control: Computing convergence rates](chapter4/convergence).
60-
- Added tutorial on interpolation of `ufl.Expression` in [Deflection of a membrane](chapter1/membrane_code).
73+
- Added tutorial on interpolation of {py:class}`ufl.core.expr.Expr` in [Deflection of a membrane](chapter1/membrane_code).
6174
- Added tutorial on how to apply constant-valued Dirichlet conditions in [Deflection of a membrane](chapter1/membrane_code).
6275
- Various API changes relating to the import structure of DOLFINx
6376

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ To run python scripts, either choose `PYVISTA_OFF_SCREEN=True` to get screenshot
4242

4343

4444
```bash
45-
python3 -m jupytext --sync */*.ipynb
45+
python3 -m jupytext --sync */*.ipynb --set-formats ipynb,py:light
4646
```
4747
or
4848
```bash
@@ -86,4 +86,3 @@ from the root of this repository, and run
8686
```
8787

8888
from the main directory.
89-

_config.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,24 @@ sphinx:
4040
# https://github.com/pydata/pydata-sphinx-theme/issues/1492
4141
# html_theme_options:
4242
# navigation_with_keys: false
43+
codeautolink_concat_default: True
44+
intersphinx_mapping:
45+
basix: ["https://docs.fenicsproject.org/basix/main/python/", null]
46+
ffcx: ["https://docs.fenicsproject.org/ffcx/main/", null]
47+
ufl: ["https://docs.fenicsproject.org/ufl/main/", null]
48+
dolfinx: ["https://docs.fenicsproject.org/dolfinx/main/python", null]
49+
petsc4py: ["https://petsc.org/release/petsc4py", null]
50+
mpi4py: ["https://mpi4py.readthedocs.io/en/stable", null]
51+
numpy: ["https://numpy.org/doc/stable/", null]
52+
pyvista: ["https://docs.pyvista.org/", null]
53+
packaging: ["https://packaging.pypa.io/en/stable/", null]
54+
matplotlib: ["https://matplotlib.org/stable/", null]
55+
56+
extra_extensions:
57+
- "sphinx.ext.autodoc"
58+
- "sphinx.ext.intersphinx"
59+
- "sphinx_codeautolink"
60+
4361
parse:
4462
myst_enable_extensions:
4563
- "amsmath"
@@ -68,3 +86,4 @@ html:
6886
</div>
6987
7088
exclude_patterns: [README.md, chapter2/advdiffreac.md]
89+
only_build_toc_files: true

_toc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ parts:
5252
- file: chapter3/em
5353
- caption: Improving your FEniCSx code
5454
chapters:
55+
- file: chapter4/mixed_poisson
5556
- file: chapter4/solvers
5657
- file: chapter4/compiler_parameters
5758
- file: chapter4/convergence

0 commit comments

Comments
 (0)