<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"> in the user manual, it taks about the MAT_FLUSH_ASSEMbLY, and MAT_FINAL_ASSEMBLY, <div>how to use the MAT_FLUSH_ASSEMBLY, if i want to mix the add value and insert value.</div><div><br><div><br><br><br><br><br><div></div><div id="divNeteaseMailCard"></div><br><pre><br>ÔÚ 2013-06-01 00:30:45£¬"Jed Brown" <jedbrown@mcs.anl.gov> дµÀ£º
>¶¡ÀÏʦ <ztdepyahoo@163.com> writes:
>
>> I write a simple c procedure to test the MatSetValues. the main body of procedure is like this
>>
>> int row=1;
>> int col=10;
>> double v=1.0;
>>
>> MatSetValues(A,1,&row,1,&col,&v,INSERT_VALUES);
>> MatSetValues(A,1,&row,1,&row,&v,ADD_VALUES);
>> MatSetValues(A,1,&col,1,&col,&v,ADD_VALUES);
>
>You can't mix INSERT_VALUES and ADD_VALUES. Please use debugging PETSc
>for development. It warns about this.
</pre></div></div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>