Skip to content

Commit 17e541a

Browse files
authored
Bump jupytext, remove unused import and API change due to: FEniCS/dolfinx#3434 (#209)
1 parent a86ec74 commit 17e541a

22 files changed

+25
-26
lines changed

chapter1/complex_mode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# extension: .py
77
# format_name: light
88
# format_version: '1.5'
9-
# jupytext_version: 1.15.2
9+
# jupytext_version: 1.16.4
1010
# kernelspec:
1111
# display_name: Python 3 (DOLFINx complex)
1212
# language: python

chapter1/fundamentals_code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# extension: .py
77
# format_name: light
88
# format_version: '1.5'
9-
# jupytext_version: 1.15.2
9+
# jupytext_version: 1.16.4
1010
# kernelspec:
1111
# display_name: Python 3 (ipykernel)
1212
# language: python

chapter1/membrane_code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# extension: .py
77
# format_name: light
88
# format_version: '1.5'
9-
# jupytext_version: 1.16.1
9+
# jupytext_version: 1.16.4
1010
# kernelspec:
1111
# display_name: Python 3 (ipykernel)
1212
# language: python

chapter1/nitsche.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# extension: .py
77
# format_name: light
88
# format_version: '1.5'
9-
# jupytext_version: 1.16.1
9+
# jupytext_version: 1.16.4
1010
# kernelspec:
1111
# display_name: Python 3 (ipykernel)
1212
# language: python

chapter2/diffusion_code.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# extension: .py
77
# format_name: light
88
# format_version: '1.5'
9-
# jupytext_version: 1.16.1
9+
# jupytext_version: 1.16.4
1010
# kernelspec:
1111
# display_name: Python 3 (ipykernel)
1212
# language: python
@@ -27,7 +27,6 @@
2727

2828
# +
2929
import matplotlib as mpl
30-
import matplotlib.pyplot as plt
3130
import pyvista
3231
import ufl
3332
import numpy as np

chapter2/heat_code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# extension: .py
77
# format_name: light
88
# format_version: '1.5'
9-
# jupytext_version: 1.16.1
9+
# jupytext_version: 1.16.4
1010
# kernelspec:
1111
# display_name: Python 3 (ipykernel)
1212
# language: python

chapter2/hyperelasticity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# extension: .py
77
# format_name: light
88
# format_version: '1.5'
9-
# jupytext_version: 1.16.1
9+
# jupytext_version: 1.16.4
1010
# kernelspec:
1111
# display_name: Python 3 (ipykernel)
1212
# language: python

chapter2/linearelasticity_code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# extension: .py
77
# format_name: light
88
# format_version: '1.5'
9-
# jupytext_version: 1.16.1
9+
# jupytext_version: 1.16.4
1010
# kernelspec:
1111
# display_name: Python 3 (ipykernel)
1212
# language: python

chapter2/nonlinpoisson_code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# extension: .py
77
# format_name: light
88
# format_version: '1.5'
9-
# jupytext_version: 1.16.1
9+
# jupytext_version: 1.16.4
1010
# kernelspec:
1111
# display_name: Python 3 (ipykernel)
1212
# language: python

chapter2/ns_code1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# extension: .py
77
# format_name: light
88
# format_version: '1.5'
9-
# jupytext_version: 1.15.2
9+
# jupytext_version: 1.16.4
1010
# kernelspec:
1111
# display_name: Python 3 (ipykernel)
1212
# language: python

chapter2/ns_code2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# extension: .py
77
# format_name: light
88
# format_version: '1.5'
9-
# jupytext_version: 1.16.1
9+
# jupytext_version: 1.16.4
1010
# kernelspec:
1111
# display_name: Python 3 (ipykernel)
1212
# language: python

chapter3/component_bc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# extension: .py
77
# format_name: light
88
# format_version: '1.5'
9-
# jupytext_version: 1.16.1
9+
# jupytext_version: 1.16.4
1010
# kernelspec:
1111
# display_name: Python 3 (ipykernel)
1212
# language: python

chapter3/em.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# extension: .py
77
# format_name: light
88
# format_version: '1.5'
9-
# jupytext_version: 1.15.2
9+
# jupytext_version: 1.16.4
1010
# kernelspec:
1111
# display_name: Python 3 (ipykernel)
1212
# language: python

chapter3/multiple_dirichlet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# extension: .py
77
# format_name: light
88
# format_version: '1.5'
9-
# jupytext_version: 1.16.1
9+
# jupytext_version: 1.16.4
1010
# kernelspec:
1111
# display_name: Python 3 (ipykernel)
1212
# language: python

chapter3/neumann_dirichlet_code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# extension: .py
77
# format_name: light
88
# format_version: '1.5'
9-
# jupytext_version: 1.16.1
9+
# jupytext_version: 1.16.4
1010
# kernelspec:
1111
# display_name: Python 3 (ipykernel)
1212
# language: python

chapter3/robin_neumann_dirichlet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# extension: .py
77
# format_name: light
88
# format_version: '1.5'
9-
# jupytext_version: 1.16.1
9+
# jupytext_version: 1.16.4
1010
# kernelspec:
1111
# display_name: Python 3 (ipykernel)
1212
# language: python

chapter3/subdomains.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# extension: .py
77
# format_name: light
88
# format_version: '1.5'
9-
# jupytext_version: 1.16.1
9+
# jupytext_version: 1.16.4
1010
# kernelspec:
1111
# display_name: Python 3 (ipykernel)
1212
# language: python

chapter4/compiler_parameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# extension: .py
77
# format_name: light
88
# format_version: '1.5'
9-
# jupytext_version: 1.16.1
9+
# jupytext_version: 1.16.4
1010
# kernelspec:
1111
# display_name: Python 3 (ipykernel)
1212
# language: python

chapter4/convergence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# extension: .py
77
# format_name: light
88
# format_version: '1.5'
9-
# jupytext_version: 1.16.1
9+
# jupytext_version: 1.16.4
1010
# kernelspec:
1111
# display_name: Python 3 (ipykernel)
1212
# language: python

chapter4/newton-solver.ipynb

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

chapter4/newton-solver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# extension: .py
77
# format_name: light
88
# format_version: '1.5'
9-
# jupytext_version: 1.16.1
9+
# jupytext_version: 1.16.4
1010
# kernelspec:
1111
# display_name: Python 3 (ipykernel)
1212
# language: python
@@ -257,7 +257,7 @@ def u_exact(x):
257257
L.scale(-1)
258258

259259
# Compute b - J(u_D-u_(i-1))
260-
dolfinx.fem.petsc.apply_lifting(L, [jacobian], [[bc]], x0=[uh.x.petsc_vec], scale=1)
260+
dolfinx.fem.petsc.apply_lifting(L, [jacobian], [[bc]], x0=[uh.x.petsc_vec], alpha=1)
261261
# Set du|_bc = u_{i-1}-u_D
262262
dolfinx.fem.petsc.set_bc(L, [bc], uh.x.petsc_vec, 1.0)
263263
L.ghostUpdate(addv=PETSc.InsertMode.INSERT_VALUES, mode=PETSc.ScatterMode.FORWARD)

chapter4/solvers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# extension: .py
77
# format_name: light
88
# format_version: '1.5'
9-
# jupytext_version: 1.16.1
9+
# jupytext_version: 1.16.4
1010
# kernelspec:
1111
# display_name: Python 3 (ipykernel)
1212
# language: python

0 commit comments

Comments
 (0)