[petsc-users] Matrix/Vector Assembly

Barry Smith bsmith at mcs.anl.gov
Fri Mar 30 20:14:52 CDT 2012


On Mar 30, 2012, at 6:15 PM, Matthew Knepley wrote:

> On Fri, Mar 30, 2012 at 5:59 PM, Andrew Spott <andrew.spott at gmail.com> wrote:
> When is it necessary to assemble a matrix/vector?  Do I need to do it after every change in the matrix/vector?  Or just after "AddValue(s)" type functions?
> 
> Every change.

   Well after calls to MatSetValues and friends but not MatScale() MatShift() MatAXPY() etc

> 
>    Matt
>  
> -Andrew
> 
> 
> 
> -- 
> 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