[petsc-users] MPI_Comm_spawn when using PETSc
Barry Smith
bsmith at mcs.anl.gov
Mon May 27 18:37:10 CDT 2013
I have added a new issue at https://bitbucket.org/petsc/petsc/issue/43/add-petscreinitialize to list this as a future enhancement to PETSc.
Barry
On May 27, 2013, at 9:26 AM, Matthew Knepley <knepley at gmail.com> wrote:
> 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
More information about the petsc-users
mailing list