[petsc-users] Multiple Copies of KSP

Joshua Booth jdbst21 at gmail.com
Mon Feb 28 22:19:15 CST 2011


Hello,

In reply,

I get a Segment fault even though I only call:
KSP;
KSPCreate(MPI_COMM_SELF, &ksp);

Again... note that this is being done by all cores in the MPI_COMM_WORLD at
the same time.

On Mon, Feb 28, 2011 at 11:11 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:

>
> On Feb 28, 2011, at 10:07 PM, Joshua Booth wrote:
>
> > Hello,
> >
> > I was wondering if it is possible to have multiple KSP running, each on
> their own core but in the same program.
>
>   Yes. If you want a separate linear solve on each MPI process then you use
> MPI_COMM_SELF for the KSP, note that you also need to use that same
> MPI_COMM_SELF for creating the Vecs and Mats since each process needs its
> own for its particular linear system.
>
> > When I have tried this before using MPI_COMM_SELF,  I get an error.
>
>    We would need more information to determine what has gone wrong.
>
>   Barry
>
>
> >
> > Thank you
> >
> > Joshua Booth
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110228/18cd686a/attachment.htm>


More information about the petsc-users mailing list