[petsc-users] Determining maximum number of columns in sparse matrix
Alexander Lindsay
alexlindsay239 at gmail.com
Sun Nov 6 16:31:09 CST 2022
We sometimes overallocate our sparsity pattern. Matrix assembly will
squeeze out allocations that we never added into/set. Is there a convenient
way to determine the size of the densest row post-assembly? I know that we
could iterate over rows and call `MatGetRow` and figure it out that way.
But I'm wondering if there is a better way?
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20221106/ae0983f7/attachment.html>
More information about the petsc-users
mailing list