[petsc-users] MatView to file

Alfredo Jaramillo ajaramillopalma at gmail.com
Fri Aug 12 09:28:27 CDT 2022

Dear developers,

I'm writing a sparse matrix into a file by doing

    if (dump_mat) {
        PetscViewer viewer;
        PetscViewerPushFormat(viewer, PETSC_VIEWER_ASCII_MATLAB);

This works perfectly for small cases.
The program crashes for a case where the matrix A is of order 1 million but
with only 4 million non-zero elements.

Maybe at some point petsc is full-sizing A?

Thank you,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20220812/26897e35/attachment.html>

More information about the petsc-users mailing list