Description
Describe the bug
If I understood correctly, there was a recent update to the tsfc repository #firedrakeproject/tsfc@1944432 that should make possible to compate integrals on facets in hexahedral meshes. Before it was not supported.
However, the following MVE produces the error messages shown below.
The same error occurs using ds
(external facets ) in place of dS
.
Enrico
from firedrake import *
mesh = UnitCubeMesh(2,2,2,hexahedral=True)
W = FunctionSpace(mesh, "DQ", 0)
u = Function(W)
v = TestFunction(W)
h = CellSize(W.mesh())
h_avg = (h('+') + h('-'))/2
a_dg = - 4.0/h_avg * jump(u)* jump(v) * dS
A = assemble(a_dg)
Error message
File "/home/firedrake/firedrake/src/tsfc/tsfc/fem.py", line 115, in use_canonical_quadrature_point_ordering
return isinstance(self.fiat_cell, UFCHexahedron) and self.integral_type in ['exterior_facet', 'interior_facet']
^^^^^^^^^^^^^^^^^^
AttributeError: 'PointSetContext' object has no attribute 'integral_type'
Environment:
- OS: Ubuntu
- Python version: 3.12.3
- Output of Firedrake Configuration:
package_manager: False
minimal_petsc: False
mpicc: /home/firedrake/petsc/packages/bin/mpicc
mpicxx: /home/firedrake/petsc/packages/bin/mpicxx
mpif90: /home/firedrake/petsc/packages/bin/mpif90
mpiexec: /home/firedrake/petsc/packages/bin/mpiexec
disable_ssh: True
honour_petsc_dir: True
with_parmetis: False
slepc: True
packages: ['git+ssh://bitbucket.org/pefarrell/fascd.git@master#egg=fascd', 'git+ssh://github.com/firedrakeproject/gusto.git@main#egg=gusto', 'git+ssh://github.com/icepack/icepack.git#egg=icepack', 'git+ssh://bitbucket.org/pefarrell/fascd.git@master#egg=fascd', 'git+ssh://github.com/FEMlium/FEMlium.git@main#egg=FEMlium', 'git+ssh://github.com/g-adopt/g-adopt.git@master#egg=gadopt', 'git+ssh://github.com/icepack/icepack.git#egg=icepack', 'git+ssh://github.com/firedrakeproject/asQ.git@master#egg=asQ', 'git+ssh://github.com/firedrakeproject/gusto.git@main#egg=gusto', 'git+ssh://github.com/firedrakeproject/Irksome.git#egg=Irksome', 'git+ssh://github.com/thetisproject/thetis#egg=thetis', 'git+ssh://github.com/g-adopt/g-adopt.git@master#egg=gadopt', 'git+ssh://github.com/firedrakeproject/Irksome.git#egg=Irksome', 'git+ssh://github.com/thetisproject/thetis#egg=thetis', 'git+ssh://github.com/FEMlium/FEMlium.git@main#egg=FEMlium', 'git+ssh://bitbucket.org/pefarrell/defcon.git@master#egg=defcon', 'git+ssh://github.com/firedrakeproject/asQ.git@master#egg=asQ', 'git+ssh://bitbucket.org/pefarrell/defcon.git@master#egg=defcon']
honour_pythonpath: False
opencascade: False
torch: cpu
jax: cpu
petsc_int_type: int32
cache_dir: /home/firedrake/firedrake/.cache
complex: False
remove_build_files: False
with_blas: None
netgen: True
Additions:
None
Environment:
PYTHONPATH: None
PETSC_ARCH: default
PETSC_DIR: /home/firedrake/petsc
Status of components: