Comment 25 for bug 799513

Revision history for this message
Johannes Ring (johannr) wrote :

I get the same error with SWIG 2.0.6:

johannr@buildbotmac:python$ python demo_poisson.py
DOLFIN_NOPLOT set, plotting disabled.
Calling FFC just-in-time (JIT) compiler, this may take some time.
<beb23b112d19455912a74d0b3512b2576a219e63.ffc_form_beb23b112d19455912a74d0b3512b2576a219e63_finite_element_0; proxy of <Swig Object of type 'boost::shared_ptr< ffc_form_beb23b112d19455912a74d0b3512b2576a219e63_finite_element_0 > *' at 0x108ee7ab0> >

<class 'beb23b112d19455912a74d0b3512b2576a219e63.ffc_form_beb23b112d19455912a74d0b3512b2576a219e63_finite_element_0'>

(<class 'ufc.ufc.finite_element'>,)
Traceback (most recent call last):
  File "demo_poisson.py", line 41, in <module>
    V = FunctionSpace(mesh, "Lagrange", 1)
  File "/Users/johannr/tmp/dorsal/Work/FEniCS/lib/python2.7/site-packages/dolfin/functions/functionspace.py", line 386, in __init__
    FunctionSpaceBase.__init__(self, mesh, element)
  File "/Users/johannr/tmp/dorsal/Work/FEniCS/lib/python2.7/site-packages/dolfin/functions/functionspace.py", line 86, in __init__
    self._dolfin_element = cpp.FiniteElement(ufc_element)
  File "/Users/johannr/tmp/dorsal/Work/FEniCS/lib/python2.7/site-packages/dolfin/cpp/fem.py", line 973, in __init__
    _fem.FiniteElement_swiginit(self,_fem.new_FiniteElement(*args))
TypeError: in method 'new_FiniteElement', argument 1 of type 'boost::shared_ptr< ufc::finite_element const >'