Skip to content

Commit

Permalink
fix doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
kinnala committed Jun 17, 2024
1 parent df4d522 commit bfaafa3
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion docs/advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ cube mesh:
Number of elements: 1
Number of vertices: 8
Number of nodes: 8
Named boundaries [# facets]: left [1], bottom [1], front [1], right [1], top [1], back [1]
>>> basis = Basis(m, ElementHex2())
>>> basis
<skfem CellBasis(MeshHex1, ElementHex2) object>
Expand Down
4 changes: 2 additions & 2 deletions docs/howto.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ the boundary. Currently the main tool for finding DOFs is
.. doctest::

>>> from skfem import MeshTri, Basis, ElementTriP2
>>> m = MeshTri().refined(2)
>>> m = MeshTri().refined(2).with_default_tags()
>>> basis = Basis(m, ElementTriP2())

.. plot::
Expand Down Expand Up @@ -118,7 +118,7 @@ as follows:

from skfem import *
from skfem.visuals.matplotlib import *
m = MeshTri().refined(2)
m = MeshTri().refined(2).with_default_tags()
basis = Basis(m, ElementTriP2())
dofs = basis.get_dofs('left')
ax = draw(m)
Expand Down
1 change: 0 additions & 1 deletion skfem/assembly/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
Number of elements: 2
Number of vertices: 4
Number of nodes: 4
Named boundaries [# facets]: left [1], bottom [1], right [1], top [1]
2. Create :class:`~skfem.assembly.CellBasis` or
:class:`~skfem.assembly.FacetBasis` objects.
Expand Down
1 change: 0 additions & 1 deletion skfem/mesh/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
Number of elements: 2
Number of vertices: 4
Number of nodes: 4
Named boundaries [# facets]: left [1], bottom [1], right [1], top [1]
Each mesh type has several constructors; see the docstring, e.g.,
``help(MeshTri)`` or click :class:`~skfem.mesh.MeshTri` in the online
Expand Down

0 comments on commit bfaafa3

Please sign in to comment.