-
-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Form with domain markers creates duplicated kernels #447
Comments
The problem seems to be that ufl splits integrals by domain marker. from ufl import *
coord_element = VectorElement("Lagrange", interval, 1)
mesh = Mesh(coord_element)
element = FiniteElement("Lagrange", interval, 1)
V = FunctionSpace(mesh, element)
u = TrialFunction(V)
v = TestFunction(V)
a = inner(u, v) * dx((1,2))
print(a.integrals()) returns two integrals. |
This is mentioned in FEniCS/ufl#70 |
Yep, It is expected as we have one kernel for each |
@michalhabera |
at the cfd stage you can merge integral data where the only difference is in the subdomain id. we can definitely handle that integration in firedrake (it might need minor adaptations) |
MWE:
Produces 2 identitical kernels:
The text was updated successfully, but these errors were encountered: