[petsc-users] quick question on MatXAIJSetPreallocation

Xiangdong epscodes at gmail.com
Wed Oct 30 16:00:44 CDT 2019


Hello everyone,

It seems that to use MatXAIJSetPreallocation, one has to pass the array of
the number of nonzero blocks per row, even if this number is same across
all the local rows.

For the other preallocation functions (say, MatMPIBAIJSetPreallocation),
they do support both a constant and a array for the number of nonzeros.

I am curious that the reason MatAIJSetPreallocation does not support the
constant number of nonzeros case.

Thank you.
Xiangdong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20191030/abcb158e/attachment.html>


More information about the petsc-users mailing list