preallocate space

Yixun Liu enjoywm at cs.wm.edu
Wed Feb 11 15:47:08 CST 2009


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.


More information about the petsc-users mailing list