[petsc-users] new communicators
Matthew Knepley
knepley at gmail.com
Tue Apr 21 05:35:13 CDT 2015
On Tue, Apr 21, 2015 at 3:10 AM, siddhesh godbole <
siddhesh4godbole at gmail.com> wrote:
> Hello,
>
>
> can i create separate communicator for set of processes and run different
> programs in those communicator environment at a time? i would like to
> create _comm1 for 2 procs, _comm2 for 4 procs and so on. how do i do that?
> is there any reference? is creating comm cost effective?
>
Yes, you can use something like MPI_Comm_split() to get new
subcommunicators, and then create
objects with those that will just run on those processes. For example, you
can have 2 SNESes on
subcomm1 and subcomm2 to do two concurrent solves.
Matt
> thanks
>
> *Siddhesh M Godbole*
>
> 5th year Dual Degree,
> Civil Eng & Applied Mech.
> IIT Madras
>
--
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/20150421/b822035f/attachment.html>
More information about the petsc-users
mailing list