Appending Values in Matrices

Christopher Harden charden at scs.fsu.edu
Tue Jul 11 08:53:51 CDT 2006


Thank you!

I was working from the online manual and missed the distinction between 
insert_values and add_values. I was sure that there had to be a simple 
way to do this. Thank you.

Chris


On Jul 10, 2006, at 5:23 PM, Satish Balay wrote:

> 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