Hello,
I have been implemented a stabilized FEM whose stabilization term is the sum over the
interior facet of some facet integrals.
Until now I have the following code
for facet in facets(mesh):
subdomains.set_all(0)
facet_integration.set_all(0)
if interior_facets[facet] == 1:
facet_integration[facet] = 1
if extremum_domain_parts[facet] == 1:
t0 = 1.0
else:
t0 = alpha(u_h)
AA1 = assemble(a_ld3, interior_facet_domains = facet_integration)
AA2 = assemble(a_lps3, interior_facet_domains = facet_integration)
AA = AA + t0*AA1 + (1-t0)*AA2
but it is very slow. Can I implement it in a better way?
thank you in advance
Fotini