Skip to content

Commit

Permalink
Update demo_tnt-elements.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jmv2009 authored Dec 15, 2024
1 parent 20907a0 commit 04df188
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/demo/demo_tnt-elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@


def create_tnt_quad(degree):
assert degree > 1
assert degree > 0
# Polyset
ndofs = (degree + 1) ** 2 + 4
npoly = (degree + 2) ** 2
Expand Down Expand Up @@ -309,7 +309,7 @@ def poisson_error(V: fem.FunctionSpace):
tnt_ndofs.append(V.dofmap.index_map.size_global)
tnt_errors.append(poisson_error(V))
print(f"TNT degree 1 error: {tnt_errors[-1]}")
for degree in range(2, 9):
for degree in range(1, 9):
V = fem.functionspace(msh, create_tnt_quad(degree))
tnt_degrees.append(degree + 1)
tnt_ndofs.append(V.dofmap.index_map.size_global)
Expand Down

0 comments on commit 04df188

Please sign in to comment.