I've just updated to the SVN head, and saw that libMesh::init is now 
deprecated. So I changed to use LibMeshInit, but I get a problem when I 
make MPI calls. For example, this runs fine:

int main (int argc, char** argv)
{
  libMesh::init(argc,argv);
  {

    PetscErrorCode ierr;
    PetscMPIInt    num_procs;
    ierr = MPI_Comm_size(PETSC_COMM_WORLD,&num_procs);CHKERRQ(ierr);

  }
  return libMesh::close();
}

But changing to:

int main (int argc, char** argv)
{
  LibMeshInit(argc,argv);

  PetscErrorCode ierr;
  PetscMPIInt    num_procs;
  ierr = MPI_Comm_size(PETSC_COMM_WORLD,&num_procs);CHKERRQ(ierr);

}

I get the error:
"Attempting to use an MPI routine after finalizing MPICH".

I haven't spotted what's causing the problem, help would be appreciated.

Cheers,
Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to