<div dir="ltr"><p>Thank you for your reply, Matt. I have checked the tutorials. They just use specified values and MatSetValues() to make a parallel matrix. Now, the matrix I use is in a single node of the cluster. I have 'M' nodes in this cluster. I need to copy the sequential matrix to other 'M-1' nodes and then use MatSetValues() or I just use MatSetvalues() in the node where the matrix is? The latter should work, right? thanks.</p>
<p>Yujie<br></p><br><div class="gmail_quote">On Mon, Sep 22, 2008 at 11:09 AM, Matthew Knepley <span dir="ltr"><<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
The right way to do this is to input the matrix using MatSetValues()<br>
in a distribute fashion. You can consult any of the tutorials, for instance<br>
KSP ex2 for an example of this.<br>
<br>
Matt<br>
<div><div class="Wj3C7c"><br>
On Mon, Sep 22, 2008 at 12:57 PM, Yujie <<a href="mailto:recrusader@gmail.com">recrusader@gmail.com</a>> wrote:<br>
> Hi, Petsc developer<br>
><br>
> Now, I have a sequential dense matrix. How to get a parallel matrix based on<br>
> it? thanks a lot.<br>
><br>
> Regards,<br>
><br>
> Yujie<br>
</div></div><font color="#888888">--<br>
What most experimenters take for granted before they begin their<br>
experiments is infinitely more interesting than any results to which<br>
their experiments lead.<br>
-- Norbert Wiener<br>
<br>
</font></blockquote></div><br></div>