[petsc-users] MPI_Comm_spawn when using PETSc

Matthew Knepley knepley at gmail.com
Mon May 27 09:26:06 CDT 2013


On Mon, May 27, 2013 at 10:03 AM, Suraj Prabhakaran <
s.prabhakaran at grs-sim.de> wrote:

> Dear all,
>
> I am completely new to PETSc. I would like to know if it is possible to
> use PETSc after increasing the number of processes in an MPI program
> through MPI_Comm_spawn.
> The application is started with a set of MPI processes and the PETSC is
> initialized with this set. At a later point, the application could indeed
> increase the set of processes (through MPI_Comm_spawn) and create a intra
> communicator with the parent and the children. I would like to use these
> processes too with PETSC. Would this be possible (by providing the new
> communicator for instance)?
>

You can give a PetscObject any communicator, however PETSC_COMM_WORLD is
used for a bunch of global stuff,
like logging, so you may get unexpected behavior.

   Matt


> Thanks!
> Regards,
> Suraj
>
>


-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130527/8712a738/attachment-0001.html>


More information about the petsc-users mailing list