<div dir="ltr"><div>Dear developers,</div><div><br></div><div>I'm writing a sparse matrix into a file by doing <br></div><div><br></div><div> if (dump_mat) {<br> PetscViewer viewer;<br> PetscViewerASCIIOpen(PETSC_COMM_WORLD,"mat-par-aux.m",&viewer);<br> PetscViewerPushFormat(viewer, PETSC_VIEWER_ASCII_MATLAB);<br> MatView(A,viewer);<br> }</div><div><br></div><div>This works perfectly for small cases.<br></div><div>The program crashes for a case where the matrix A is of order 1 million but with only 4 million non-zero elements.</div><div><br></div><div>Maybe at some point petsc is full-sizing A?</div><div><br></div><div>Thank you,</div><div>Alfredo<br></div></div>