"Young, Matthew, Adam" <[email protected]> writes:

> Is there an advantage to using MatXAIJSetPreallocation (as Jed
> suggested) or either of the SEQ/MPI preallocation routines (as Hui
> originally considered) instead of calling MatSetUp to cover all cases?

If you don't preallocate, MatSetUp guesses:

http://www.mcs.anl.gov/petsc/documentation/faq.html#efficient-assembly

Attachment: signature.asc
Description: PGP signature

Reply via email to