how to create sequential Vec or Mat in parallel mode.

Matthew Knepley knepley at gmail.com
Sat Apr 12 13:16:15 CDT 2008


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 at gmail.com> 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




More information about the petsc-users mailing list