[petsc-users] DMCreateMatrix with some dense row

Sang pham van pvsang002 at gmail.com
Thu Sep 3 11:28:10 CDT 2015


Hi,

I am using DMCreateMatrix to create matrix from a existed DM object and
defined stencil.
In my code, boundary nodes need to involve many inner nodes, thus matrix
rows corresponding to boundary nodes are almost dense. How can I  tell
petsc that those rows need to be preallocated with more entries? I don't
want to use MatMPIAIJSetPreallocation() since advantages of DM might be
lost.

Many thanks.

Sam.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150904/6fdd3969/attachment.html>


More information about the petsc-users mailing list