Skip to content

Commit

Permalink
Fix doc in demo_poisson.py (#2984)
Browse files Browse the repository at this point in the history
* fix 2 sentences in demo_poisson.py, one is the Dirichlet boundary, the other is a typo

* Delete python/demo/.ipynb_checkpoints/demo_poisson-checkpoint.py

Delete checkpoint file

---------

Co-authored-by: Jørgen Schartum Dokken <[email protected]>
  • Loading branch information
RequieMa and jorgensd authored Jan 12, 2024
1 parent 3ec6199 commit 4eba9c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/demo/demo_poisson.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
# In this demo we consider:
#
# - $\Omega = [0,2] \times [0,1]$ (a rectangle)
# - $\Gamma_{D} = \{(0, y) \cup (1, y) \subset \partial \Omega\}$
# - $\Gamma_{D} = \{(0, y) \cup (2, y) \subset \partial \Omega\}$
# - $\Gamma_{N} = \{(x, 0) \cup (x, 1) \subset \partial \Omega\}$
# - $g = \sin(5x)$
# - $f = 10\exp(-((x - 0.5)^2 + (y - 0.5)^2) / 0.02)$
Expand Down Expand Up @@ -132,7 +132,7 @@
# A {py:class}`LinearProblem <dolfinx.fem.petsc.LinearProblem>` object is
# created that brings together the variational problem, the Dirichlet
# boundary condition, and which specifies the linear solver. In this
# case an LU solver us sued. The {py:func}`solve
# case an LU solver is used. The {py:func}`solve
# <dolfinx.fem.petsc.LinearProblem.solve>` computes the solution.

# +
Expand Down

0 comments on commit 4eba9c2

Please sign in to comment.