Re: [Libmesh-users] MPI problem

2012-08-28 Thread 蔡园武
Thanks for your detailed explanation. I tried your method and my code works right now! 2012/8/29 Roy Stogner : > > On Wed, 29 Aug 2012, 蔡园武 wrote: > >> I found the definition of Parallel::barrier: >> void libMesh::Parallel::barrier ( const Communicator & >> comm = >> Communicator_Wor

Re: [Libmesh-users] MPI problem

2012-08-28 Thread Roy Stogner
On Wed, 29 Aug 2012, 蔡园武 wrote: I found the definition of Parallel::barrier: void libMesh::Parallel::barrier ( const Communicator & comm = Communicator_World ) [inline] and the explanation: Pause execution until all processors reach a certain point. But I don

Re: [Libmesh-users] MPI problem

2012-08-28 Thread 蔡园武
2012/8/27 Roy Stogner : > > On Mon, 27 Aug 2012, 蔡园武 wrote: > >> It seems that the processor_id 0 is writing equation_systems to file >> "Iter_0.gmv", and at the same time, processor_id 1 is trying to open >> the file "Iter_0.gmv". Is it correct? > > > That would be my first guess. > > >> I don't k

Re: [Libmesh-users] MPI problem

2012-08-27 Thread Roy Stogner
On Mon, 27 Aug 2012, 蔡园武 wrote: It seems that the processor_id 0 is writing equation_systems to file "Iter_0.gmv", and at the same time, processor_id 1 is trying to open the file "Iter_0.gmv". Is it correct? That would be my first guess. I don't know much about MPI. Could someone explain th

[Libmesh-users] MPI problem

2012-08-27 Thread 蔡园武
Hi, guys, I have a problem using MPI. The behaviour of my code becomes weird. The following is part of my code where the problem is: // First output mesh and nodal data const MeshBase& mesh = es.get_mesh(); std::cout << '[' << libMesh::processor_id() << "] " << "writing e

Re: [Libmesh-users] MPI problem - installation of latest release

2010-12-15 Thread robert
Hi, if I use ./configure --disable-mpi I get the same problem Running the samples directly doesn't work either. If you don't have time - maybe someone else has any suggestion? thankes, Robert Am Mittwoch, den 15.12.2010, 12:39 -0700 schrieb Cody Permann: > Robert, > > I'm sorry I don't r

Re: [Libmesh-users] MPI problem - installation of latest release

2010-12-15 Thread Cody Permann
Robert, I'm sorry I don't really have time to dig into this at the moment but there are a few more things you can try. First if you just want to play around with libMesh you don't need to run with the MPI library. You might try disabling MPI when you run configure to see if that will provide

Re: [Libmesh-users] MPI problem - installation of latest release

2010-12-15 Thread robert
Cody, here I also have the settings of Make.common I used the libraries mpich2 and libpetsc3.0.0 from the Ubuntu repository. For me it is strange that it worked fine with the version which I installed one year ago. Today I have just tried to install the new libmesh release - I did not change anyt

Re: [Libmesh-users] MPI problem - installation of latest release

2010-12-15 Thread Cody Permann
Robert, I have been running libMesh on Ubuntu every release since 8.04. We have it running right now on 10.10 without any issues. The one thing that we do slightly different than many users though is that we build our own MPICH2 library to link against instead of using the packages available t

[Libmesh-users] MPI problem - installation of latest release

2010-12-15 Thread robert
Hi, I have just tried to install the latest libmesh release in Ubuntu karmic. I just downloaded the folder and used ./configure and make to install libmesh. However, when I want to do make run_examples I get the following error message: Fatal error in MPI_Comm_dup: Invalid communicator, error

[Libmesh-users] MPI problem in ex4

2009-01-08 Thread vasvav
Hi all I tried to execute the 4th example in parallel but it seams that it fails to run! I typed on the console: mpiexec -n 2 ./ex4-opt -d 2 but when it is run then (except for printing mesh.print_info() & equation_systems.print_info() infos) then the following messages appear: Fatal error in M