We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20907a0 commit 04df188Copy full SHA for 04df188
python/demo/demo_tnt-elements.py
@@ -168,7 +168,7 @@
168
169
170
def create_tnt_quad(degree):
171
- assert degree > 1
+ assert degree > 0
172
# Polyset
173
ndofs = (degree + 1) ** 2 + 4
174
npoly = (degree + 2) ** 2
@@ -309,7 +309,7 @@ def poisson_error(V: fem.FunctionSpace):
309
tnt_ndofs.append(V.dofmap.index_map.size_global)
310
tnt_errors.append(poisson_error(V))
311
print(f"TNT degree 1 error: {tnt_errors[-1]}")
312
-for degree in range(2, 9):
+for degree in range(1, 9):
313
V = fem.functionspace(msh, create_tnt_quad(degree))
314
tnt_degrees.append(degree + 1)
315
0 commit comments