[petsc-dev] MatAssembly removes all preallocation info

Kong, Fande fande.kong at inl.gov
Mon Sep 25 10:39:25 CDT 2017


Hi All,

A matrix is created with the right preallocation, and then MatAssembly is
called. The preallocation info will be removed. We insert any values then,
and will encounter an malloc error.

My question is that we was intending to design like this way? Attached
simple example demonstrates what I am talking about.



Fande,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20170925/4f547eb9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ex4.c
Type: text/x-csrc
Size: 989 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20170925/4f547eb9/attachment.bin>


More information about the petsc-dev mailing list