[petsc-users] sparse matrix addition

Jed Brown jed at 59A2.org
Thu Apr 14 03:08:45 CDT 2011


On Thu, Apr 14, 2011 at 05:48, Shiyuan <gshy2014 at gmail.com> wrote:

> I have two matrices A, B of different nonzero-pattern. Their size is about
> 60k*60k. I notices that MATAXPY() is extremely slow.


What matrix format and what are you passing for MatStructure? With
DIFFERENT_NONZERO_STRUCTURE, petsc-3.1 was not doing preallocation. This is
fixed in petsc-dev.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110414/c3b5d2d3/attachment.htm>


More information about the petsc-users mailing list