[petsc-users] Adding MatAij rows
Matthew Knepley
knepley at gmail.com
Fri May 7 15:03:42 CDT 2010
On Fri, May 7, 2010 at 3:57 PM, <irfan.khan at gatech.edu> wrote:
> Petsc Team,
>
> Is there a function that can be used to add two rows and put the results
> into a third row of the same parallel matrix (MPIAIJ)? i.e
>
> A[k][l] = A[i][l] + A[j][l]
>
No, since it would entail messing with the nonzero structure. You could
easily
use a second matrix to get this effect from subsequent MatMult() calls.
Matt
> Thank you
> Irfan
>
> --
> PhD Candidate
> G.W. Woodruff School of Mechanical Engineering
> Georgia Institute of Technology
> Atlanta, GA (30332)
>
--
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/20100507/ed8cb9ff/attachment-0001.htm>
More information about the petsc-users
mailing list