[petsc-users] Clarification on MatMPIBAIJSetPreallocation (d_nnz and o_nnz)
Edoardo alinovi
edoardo.alinovi at gmail.com
Mon Oct 24 10:37:32 CDT 2022
Hello Barry,
I am doing some preliminary work to add a coupled solver in my code. I am
reading some documentation on MPIBAIJ as the matrix will be composed of
blocks of size 3x3 in 2D and 4x4 in 3D for each cell in the domain.
I can't quite understand how to set d_nnz and o_nnz. What is their size?
Should I provide a number of non-zero entries for each block or should I do
it line by line as in MATAIJ?
Would you be able to provide me with a silly example?
Thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20221024/682dd136/attachment.html>
More information about the petsc-users
mailing list