preallocate space
Matthew Knepley
knepley at gmail.com
Wed Feb 11 15:51:51 CST 2009
No only the one that matches the Mat type.
Matt
On Wed, Feb 11, 2009 at 3:47 PM, Yixun Liu <enjoywm at cs.wm.edu> wrote:
> Hi,
> In ex2,
> ierr =
> MatMPIAIJSetPreallocation(A,5,PETSC_NULL,5,PETSC_NULL);CHKERRQ(ierr);
> ierr = MatSeqAIJSetPreallocation(A,5,PETSC_NULL);CHKERRQ(ierr);
>
> It means that two spaces are allocated for matrix A?
>
> Thanks.
>
--
What most experimenters take for granted before they begin their experiments
is infinitely more interesting than any results to which their experiments
lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20090211/f6832a09/attachment.htm>
More information about the petsc-users
mailing list