On Tue, 16 Mar 2010, Edouard Oudet wrote:

> I am trying to link matlab and libmesh. I wrote a very stupide mex file
> "mex_loadlibmesh.cxx" (see below) to test the inital call of libmesh
> from matlab. The problem is that my mex file never stop ! I suspect of
> course a problem related to MPI but I have no idea how to fix this.

I don't know enough about Matlab/C++ integration to be much help, but
some suggestions:

Build libMesh without MPI?  Some MPI stacks absolutely require you to
run them with mpirun/mpiexec to set up the environment and command
line options; you might have one of those.

Another, possibly related problem: your function initializes libMesh
when the LibMeshInit object is created, but then it terminates libMesh
when the LibMeshInit object goes out of scope.  That's probably not
what you want to do, right?  Create the LibMeshInit object on the heap
(with new) instead of the stack and then destroy it manually when
you're done.
---
Roy

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to