[petsc-users] tests of MatMPIAIJSetPreallocationCSR

Jed Brown jed at jedbrown.org
Fri Mar 28 09:10:12 CDT 2014


吕超 <luchao at mail.iggcas.ac.cn> writes:

>      Can you tell me whether I need to caculate the exact diag and
>      off-diag arrays related to the nonzeros numbers when I use
>      subroutine MatMPIBAIJSetPreallocationCSR to allocate memory?

If you are asking this question, you should use the simpler
MatXAIJSetPreallocation().  You can over-estimate, but do not
under-estimate.

>      I have read this website
>      "http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatMPIAIJSetPreallocationCSR.html",
>      but I don't understand it clealy. So can you tell me where can I
>      find the example of MatMPIBAIJSetPreallocationCSR?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140328/b28547bc/attachment.pgp>


More information about the petsc-users mailing list