[petsc-users] Initializing a large sparse matrix

fujisan fujisan43 at gmail.com
Mon Oct 17 01:37:42 CDT 2022


Hi everyone,

I initialize a large sparse matrix (50000x20000) using MatCreate() and then
filling it with MatSetValues() line by line
but it takes a bit more than an hour on 80 cores to fill in the matrix.

Is there a way to optimize this initialization?

Fuji
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20221017/656e5207/attachment.html>


More information about the petsc-users mailing list