To gather a Mat, you can use MatGetSubMatrix().<br><br> Matt<br><br><div class="gmail_quote">On Wed, Apr 15, 2009 at 10:42 AM, Andreas Grassl <span dir="ltr"><<a href="mailto:Andreas.Grassl@student.uibk.ac.at">Andreas.Grassl@student.uibk.ac.at</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Andreas Grassl schrieb:<br>
> Matthew Knepley schrieb:<br>
<div class="im">>><br>
>> The Viewer has COMM_WORLD, but you are reading a matrix with COMM_SELF.<br>
>> You need to create<br>
>> a separate viewer for each process to do what you want.<br>
>><br>
><br>
> Thank you for the fast answer. I resolved this issue now, but how could i gather<br>
> the Matrix from COMM_SELF to COMM_WORLD. I searched for functions doing such<br>
> matrix copying, but MatConvert and MatCopy act on the same communicator.<br>
><br>
<br>
</div>I think I solved this as well, I simply invoked MatGetValues on one communicator<br>
and MatSetValues on the other.<br>
<br>
<br>
Kind Regards,<br>
<div><div></div><div class="h5"><br>
ando<br>
<br>
--<br>
/"\ Grassl Andreas<br>
\ / ASCII Ribbon Campaign Uni Innsbruck Institut f. Mathematik<br>
X against HTML email Technikerstr. 13 Zi 709<br>
/ \ +43 (0)512 507 6091<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener<br>