On Tue, 16 Mar 2010, Edouard Oudet wrote:

> I made some progresson my problem of linking and I will report on the mailing 
> list when it is completely OK (if it happens...).

Please do, thanks.

> Actually there is no one but many problems with that linking :
>
> - first of all in src/base/libmesh.C the two following lines
>
>  if (!libMesh::on_command_line ("--sync-with-stdio"))
>       std::ios::sync_with_stdio(false);
>
> have to be commented or matlab does not go out from the mex file.

Interesting.  Someone (Ben?) found out that turning off synchronization
of C and C++ output gives a speed improvement, so we do that by
default; I had presumed that when you actually do mix C/C++ output (as
you would by interleaving Matlab and libMesh output) the result might
be a bit garbled, but I didn't realize it might hang the code.

There's a few libMesh command-line-only options like this that we
ought to make easier to set from source code, for situations like
yours where adding them on the command line might be impossible or
might confuse other software.  The best you can do right now without
modifying library code is to create a modified argv/argc.

> As you suggested  I am trying to use libmesh without MPI. I compiled PETSC 
> and SLEPC with the option --with-mpi=0 and everything goes well (small tests 
> work fine). When compiling libmesh I have somme problems. Actually the 
> configuration step does not work (see below for the details) :  ./configure 
> --enable-slepc  --enable-petsc --disable-mpi. But perhaps this sequence of 
> option is not allowed ?

It's not currently allowed; configure assumes that if you're using
PETSc you're also using MPI, even if it's a "null" MPI stack.
---
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