← Back to team overview

dolfin team mailing list archive

SWIG 2.0.2

 

The DOLFIN Python interface won't build with SWIG 2.0.2. This issue is
that SWIG 2.0.2 demands that if a shared pointer is declared for a
class, then all classes in the class hierarchy must be declared as
shared pointers. I've done this, but there are two sticking points:

 - Unit tests fail for MeshFunctions. I expect that this is related to
the SWIG magic that has been implemented for templated MeshFunctions.

- SWIG reports:

  Warning 520: Base class 'ufc::function' of 'Foo' is not similarly
  marked as a smart pointer.

I don't understand this because I added '%shared_ptr(ufc::function)' to UFC.

The almost working branch is at

    lp:~dolfin-core/dolfin/wells

Garth



Follow ups