Skip to content
Snippets Groups Projects
Commit 058db731 authored by Dominic Kempf's avatar Dominic Kempf
Browse files

Adjust block structured tests

parent 6926640e
No related branches found
No related tags found
No related merge requests found
Showing
with 28 additions and 15 deletions
......@@ -7,7 +7,7 @@ import sys
ini = parse_ini_file(sys.argv[1])
section = ini["formcompiler"]
operators = section.get("operators", "operator")
operators = section.get("operators", "r")
result = []
for operator in [i.strip() for i in operators.split(",")]:
......
......@@ -10,5 +10,7 @@ extension = vtu
[formcompiler]
compare_l2errorsquared = 6e-4
[formcompiler.r]
blockstructured = 1
number_of_blocks = 5
\ No newline at end of file
number_of_blocks = 5
......@@ -9,7 +9,7 @@ V = FiniteElement("CG", cell, 1)
u = TrialFunction(V)
v = TestFunction(V)
forms = [(inner(grad(u), grad(v)) + u*u*v - f*v)*dx]
r = (inner(grad(u), grad(v)) + u*u*v - f*v)*dx
interpolate_expression = g
exact_solution = g
is_dirichlet = 1
......@@ -10,9 +10,11 @@ reference = poisson_ref
extension = vtu
[formcompiler]
numerical_jacobian = 1, 0 | expand num
exact_solution_expression = g
compare_l2errorsquared = 1e-7
[formcompiler.r]
numerical_jacobian = 1, 0 | expand num
blockstructured = 1
number_of_blocks = 3
......@@ -10,7 +10,7 @@ u = TrialFunction(V)
v = TestFunction(V)
forms = [(inner(grad(u), grad(v)) - f*v)*dx]
r = (inner(grad(u), grad(v)) - f*v)*dx
interpolate_expression = g
exact_solution = g
is_dirichlet = 1
......@@ -10,7 +10,9 @@ reference = poisson_ref
extension = vtu
[formcompiler]
numerical_jacobian = 1, 0 | expand num
compare_l2errorsquared = 1e-7
[formcompiler.r]
numerical_jacobian = 1, 0 | expand num
blockstructured = 1
number_of_blocks = 3
......@@ -9,7 +9,7 @@ V = FiniteElement("CG", cell, 2)
u = TrialFunction(V)
v = TestFunction(V)
forms = [(inner(grad(u), grad(v)) - f*v)*dx]
r = (inner(grad(u), grad(v)) - f*v)*dx
interpolate_expression = g
exact_solution = g
is_dirichlet = 1
......@@ -9,7 +9,9 @@ reference = poisson_ref
extension = vtu
[formcompiler]
matrix_free = 1
compare_l2errorsquared = 1e-7
[formcompiler.r]
matrix_free = 1
blockstructured = 1
number_of_blocks = 4
\ No newline at end of file
......@@ -10,7 +10,9 @@ reference = poisson_ref
extension = vtu
[formcompiler]
numerical_jacobian = 1, 0 | expand num
compare_l2errorsquared = 1e-8
[formcompiler.r]
numerical_jacobian = 1, 0 | expand num
blockstructured = 1
number_of_blocks = 4
......@@ -16,7 +16,7 @@ v = TestFunction(V)
# Define the boundary measure that knows where we are...
ds = ds(subdomain_data=bctype)
forms = [(inner(grad(u), grad(v)) - f*v)*dx - j*v*ds(0)]
r = (inner(grad(u), grad(v)) - f*v)*dx - j*v*ds(0)
interpolate_expression = g
exact_solution = g
is_dirichlet = bctype
......@@ -10,7 +10,9 @@ reference = poisson_ref
extension = vtu
[formcompiler]
numerical_jacobian = 1, 0 | expand num
compare_l2errorsquared = 1e-7
[formcompiler.r]
numerical_jacobian = 1, 0 | expand num
blockstructured = 1
number_of_blocks = 4
......@@ -12,7 +12,7 @@ V = FiniteElement("CG", cell, 1)
u = TrialFunction(V)
v = TestFunction(V)
forms = [(inner(A*grad(u), grad(v)) + c*u*v -f*v)*dx]
r = (inner(A*grad(u), grad(v)) + c*u*v -f*v)*dx
interpolate_expression = g
exact_solution = g
is_dirichlet = 1
......@@ -10,7 +10,9 @@ reference = hagenpoiseuille_ref
extension = vtu
[formcompiler]
numerical_jacobian = 0, 1 | expand num
compare_l2errorsquared = 1e-10
[formcompiler.r]
numerical_jacobian = 0, 1 | expand num
blockstructured = 1
number_of_blocks = 3
\ No newline at end of file
number_of_blocks = 3
......@@ -13,7 +13,6 @@ u, p = TrialFunctions(TH)
r = (inner(grad(v), grad(u)) - div(v)*p - q*div(u))*dx
forms = [r]
is_dirichlet = v_bctype, v_bctype, 0
interpolate_expression = g_v, None
exact_solution = g_v, 8.*(1.-x[0])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment