[petsc-users] MatSetValues and values cache

Alexander Grayver agrayver at gfz-potsdam.de
Wed Jun 6 05:22:03 CDT 2012


Hi,

In my program I assemble huge matrix (~500 millions of double complex 
nnz) and all MatSetValues calls are done before MatAssemblyBegin(A, 
MAT_FINAL_ASSEMBLY).
I'm wondering if it makes sense to use MatAssemblyBegin(A, 
MAT_FLUSH_ASSEMBLY) in between? In docs it is said:
 >> MatSetValues 
<http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatSetValues.html#MatSetValues>() 
generally caches the values.

How does the caching work actually? Is this additionally allocated 
memory (dynamic or not)?

Thanks.

-- 
Regards,
Alexander

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120606/0c08a274/attachment.html>


More information about the petsc-users mailing list