problems with MatLoad

Matthew Knepley knepley at gmail.com
Wed Apr 15 11:00:42 CDT 2009


To gather a Mat, you can use MatGetSubMatrix().

   Matt

On Wed, Apr 15, 2009 at 10:42 AM, Andreas Grassl <
Andreas.Grassl at student.uibk.ac.at> wrote:

> Andreas Grassl schrieb:
> > Matthew Knepley schrieb:
> >>
> >> The Viewer has COMM_WORLD, but you are reading a matrix with COMM_SELF.
> >> You need to create
> >> a separate viewer for each process to do what you want.
> >>
> >
> > Thank you for the fast answer. I resolved this issue now, but how could i
> gather
> > the Matrix from COMM_SELF to COMM_WORLD. I searched for functions doing
> such
> > matrix copying, but MatConvert and MatCopy act on the same communicator.
> >
>
> I think I solved this as well, I simply invoked MatGetValues on one
> communicator
> and MatSetValues on the other.
>
>
> Kind Regards,
>
> ando
>
> --
>  /"\                               Grassl Andreas
>  \ /    ASCII Ribbon Campaign      Uni Innsbruck Institut f. Mathematik
>  X      against HTML email        Technikerstr. 13 Zi 709
>  / \                               +43 (0)512 507 6091
>



-- 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20090415/03374ba3/attachment.htm>


More information about the petsc-users mailing list