Mixed element with enriched space

Issue #547 resolved
Marco Morandini created an issue

This snippet

from dolfin import *
mesh = UnitSquareMesh(32, 32)
P2 = FiniteElement("P", mesh.ufl_cell(), 2)
B3 = FiniteElement("B", mesh.ufl_cell(), 3)
vP1 = VectorElement("P", mesh.ufl_cell(), 1)
FunctionSpace(mesh, vP1 * (P2 + B3))

fails with

[...]

  File "/vivid/home/jan/dev/fenics-master/src/ffc/ffc/representation.py", line 234, in _compute_element_ir
    fiat_element)
  File "/vivid/home/jan/dev/fenics-master/src/ffc/ffc/representation.py", line 760, in _tabulate_dof_coordinates
    if uses_integral_moments(element) or not element.dual_basis()[0]:
AttributeError: 'NoneType' object has no attribute 'pt_dict'

Comments (5)

  1. Log in to comment