On Wed, Mar 30, 2011 at 12:47 PM, Jacek Hoffman <jhoff...@ippt.gov.pl> wrote: > > > It is hard to tell which version of Debian I'm running. Lets call it > pending upgrade - squeeze.
That's fine. You appear to have installed trilinos with the package manager, but it isn't working correctly. > Once upon a time it was testing/Etch minimal install. > Now /etc/apt/sources.list point at squeeze and all > current packages are from it. > There are remaining some ancient packages as python2.5. > Fortunately ipython, numpy, scipy, matplotlib work with it as > well as with 2.6. > There are two computers with similar install and same behaviours. > > I'm using only aptitude for installing packages except > dpkg -i python-fipy_2.1-1_all.deb Good. > jacek@computer01:~$ python2.6 -c "from mpi4py import MPI" > Traceback (most recent call last): > File "<string>", line 1, in <module> > ImportError: No module named mpi4py You'll need mpi4py (along with pytrilinos) for FiPy to work in parallel. Try "easy_install mpi4py". It installs a more recent version of mpi4py, which I believe is required. I think that is why it is not part of the requirements in the deb package. I'll try and review this issue before the next FiPy release. >>>> comm = Epetra.PyComm() > *** The MPI_comm_size() function was called before MPI_INIT was invoked. > *** This is disallowed by the MPI standard. > *** Your MPI job will now abort. So trilinos is hosed. Have you set the LD_LIBRARY_PATH correctly? Do you have more than one version of mpi installed (lam, mpich or openmpi)? I've got really mixed up in the past trying to figure out which libraries to compile against and which mpirun to use. On my system, I have LD_LIBRARY_PATH set to LD_LIBRARY_PATH=/users/wd15/.virtualenvs/i686-riemann/lib:/usr/lib/lam/lib for example. One thing to try and do is write a simple C program that tests that you are running in parallel (independent of trilinos). Something like this. <http://www.math.umbc.edu/~gobbert/kali/sample_codes/hello_public/hello.c> Another thing to note is that I am yet to build trilinos 10 successfully for parallel usage on Debian lenny (still using 9), but I use trilinos 10 in parallel on the latest Ubuntu. I don't believe trilinos is packaged for lenny, so I've had to build it manually. I haven't actually tried for awhile, but I'm planning to leave well alone until we update to sqeeze. Hope this helps in some way. -- Daniel Wheeler