[petsc-dev] preallocation checks

Jed Brown jedbrown at mcs.anl.gov
Sat Jan 28 12:49:31 CST 2012


On Sat, Jan 28, 2012 at 11:09, Matthew Knepley <knepley at gmail.com> wrote:

> I think MatSetUpPreallocation() would work. If we are requiring this, what
> about having it called in
> MatSetFromOptions().
>

Does not work because MatSetFromOptions() can change the matrix type, but
the user must call preallocation routines *after* the type has been set.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120128/b65c9c5c/attachment.html>


More information about the petsc-dev mailing list