[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to create sequential Vec or Mat in parallel mode.



I got it. thanks a lot:)

Regards,
Yujie

On 4/12/08, Matthew Knepley <knepley@xxxxxxxxx> wrote:
You cannot create a sequential Vec with a parallel communicator. If
you truly want
a VecSeq, use PETSC_COMM_SELF.

  Matt


On Sat, Apr 12, 2008 at 12:52 PM, Yujie <recrusader@xxxxxxxxx> wrote:
> Now, I use several processor to run my codes. However, I need to create
> sequential Vec and Mat. I use VecCreateSeq() to create Vec. I get error
> information. How to get it? thanks a lot.
>
> Regards,
> Yujie
>




--
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