Skip to content
Snippets Groups Projects
Commit 8c6bbfdc authored by René Heß's avatar René Heß
Browse files

Have a tensor in the poisson_dg_tensor test!

parent 0d9e8ff4
No related branches found
No related tags found
No related merge requests found
...@@ -25,15 +25,15 @@ gamma_int = (alpha * degree * (degree + dim - 1)) / h_int ...@@ -25,15 +25,15 @@ gamma_int = (alpha * degree * (degree + dim - 1)) / h_int
# SIPG: -1.0, IIPG: 0.0, NIPG: 1.0 # SIPG: -1.0, IIPG: 0.0, NIPG: 1.0
theta = 1.0 theta = 1.0
r = inner(grad(u), grad(v))*dx \ r = inner(A*grad(u), grad(v))*dx \
- f*v*dx \ - (c*u-f)*v*dx \
- inner(n, avg(grad(u)))*jump(v)*dS \ - inner(n, A*avg(grad(u)))*jump(v)*dS \
+ gamma_int*jump(u)*jump(v)*dS \ + gamma_int*jump(u)*jump(v)*dS \
+ theta*jump(u)*inner(avg(grad(v)), n)*dS \ + theta*jump(u)*inner(A*avg(grad(v)), n)*dS \
- inner(n, grad(u))*v*ds \ - inner(n, A*grad(u))*v*ds \
+ gamma_ext*u*v*ds \ + gamma_ext*u*v*ds \
+ theta*u*inner(grad(v), n)*ds \ + theta*u*inner(A*grad(v), n)*ds \
- gamma_ext*g*v*ds \ - gamma_ext*g*v*ds \
- theta*g*inner(grad(v), n)*ds - theta*g*inner(A*grad(v), n)*ds
exact_solution = g exact_solution = g
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