Skip to content

Commit 04df188

Browse files
authored
Update demo_tnt-elements.py
1 parent 20907a0 commit 04df188

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/demo/demo_tnt-elements.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168

169169

170170
def create_tnt_quad(degree):
171-
assert degree > 1
171+
assert degree > 0
172172
# Polyset
173173
ndofs = (degree + 1) ** 2 + 4
174174
npoly = (degree + 2) ** 2
@@ -309,7 +309,7 @@ def poisson_error(V: fem.FunctionSpace):
309309
tnt_ndofs.append(V.dofmap.index_map.size_global)
310310
tnt_errors.append(poisson_error(V))
311311
print(f"TNT degree 1 error: {tnt_errors[-1]}")
312-
for degree in range(2, 9):
312+
for degree in range(1, 9):
313313
V = fem.functionspace(msh, create_tnt_quad(degree))
314314
tnt_degrees.append(degree + 1)
315315
tnt_ndofs.append(V.dofmap.index_map.size_global)

0 commit comments

Comments
 (0)