Appending Values in Matrices

Satish Balay balay at mcs.anl.gov
Mon Jul 10 16:23:15 CDT 2006


MatSetValues(..,ADD_VALUES);

You might want to check the man page for MatSetValues(). Or
are you looking for some other functionality?

Satish

On Mon, 10 Jul 2006, Christopher Harden wrote:

> Hello All,
> 
> I'm new to PETSc and I'm trying to use a linear solver from the KSP package in
> a finite element code. Does anyone have a slick way of appending values to
> already existing values in a matrix using MatSetValues or is there some better
> routine to call for this purpose?
> 
> Thank you,
> 
> Chris Harden
> 
> 




More information about the petsc-users mailing list