← Back to team overview

dolfin team mailing list archive

DOLFIN-Matlab integration via MEX

 

Hi /Dag,

Can you send me the link to wiki where you have put your code on using MEX with Dolfin?
Or, send me the code itself?

Bests,
Reza


> On Mon, Jan 28, 2008 at 10:46:58AM +0100, Dag Lindbo wrote:

>> 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


      __________________________________________________________________
Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail.  Click on Options in Mail and switch to New Mail today or register for free at http://mail.yahoo.ca

Follow ups