dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #21890
SWIG 2.0.2
-
To:
DOLFIN Mailing List <dolfin@xxxxxxxxxxxxxxxxxxx>
-
From:
"Garth N. Wells" <gnw20@xxxxxxxxx>
-
Date:
Thu, 10 Mar 2011 12:47:13 +0000
-
User-agent:
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8
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