dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #06063
DOLFIN-Matlab integration via MEX
Hello all!
(I used DOLFIN until a year ago and now I am happy to be using it again!)
DOLFIN (C++) can be successfully integrated with Matlab via the MEX
interface. I rearranged the Poisson demo and wrote a mex-wrapper around
it so that the Poisson solver can be called as a regular Matlab
function. This integration is quite convenient IMHO and I would be happy
to share this little demo if someone is interested in how this is done.
Anyway, there was a tricky loading error due to missing symbols in
libxml2. This turned out to be caused by the reference libxml2 makes to
libz. The strange thing was that Matlab loads its internal version of
libz (found in <matlab>/bin/<arch>/) which apparently is older and
incompatible with current xml2. I just removed libz from Matlab so it
loads the system-wide one instead.
/Dag Lindbo, KTH
Follow ups