On Wed, Aug 8, 2012 at 12:47 PM, Jinquan Zhong <jzhong at scsolutions.com>wrote:
> Are you referring to preallocating memory for the size of A before > MatSetValues(A, ...)? I didn't do that. This is very important. http://www.mcs.anl.gov/petsc/documentation/faq.html#efficient-assembly With petsc-dev, it is best to use MATELEMENTAL for dense matrices. What are you trying to do with this dense martix? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120808/a90a6255/attachment.html>
