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

Do not use old UFL file for opcount test

parent 9ab7676c
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ dune_add_formcompiler_system_test(UFLFILE poisson_3d.ufl ...@@ -13,7 +13,7 @@ dune_add_formcompiler_system_test(UFLFILE poisson_3d.ufl
#================ #================
# Opcounter tests # Opcounter tests
#================ #================
dune_add_formcompiler_system_test(UFLFILE opcount_poisson_2d_order2.ufl dune_add_formcompiler_system_test(UFLFILE poisson_2d.ufl
BASENAME opcount_sumfact_poisson_2d_order2 BASENAME opcount_sumfact_poisson_2d_order2
INIFILE opcount_poisson_2d_order2.mini INIFILE opcount_poisson_2d_order2.mini
) )
......
cell = "quadrilateral"
f = Expression("Dune::FieldVector<oc::OpCounter<double>,2> c(0.5); c-= x; return 4.*(1.-c.two_norm2())*exp(-1.*c.two_norm2());", cell=cell)
g = Expression("Dune::FieldVector<oc::OpCounter<double>,2> c(0.5); c-= x; return exp(-1.*c.two_norm2());", cell=cell)
V = FiniteElement("CG", cell, 2, dirichlet_expression=g)
u = TrialFunction(V)
v = TestFunction(V)
forms = [(inner(grad(u), grad(v)) - f*v)*dx]
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