<div dir="ltr"><div><div>Hey there,<br><br></div>I'm working through some basic examples, and I want to read in a test matrix I have stored in a (row, column, value) ASCII file.   How can I read this in using PETSc?<br><br><br></div><div>I found the routine PetscViewerASCIIOpen and PetscViewerASCIIRead  but I'm not sure how to tell it that what I have is actually a matrix.  In this example, I know the matrix, so I can specify how many entries to read, but is there a way to just read "the whole file"?  <br><br>What's the preferred PETSc way to do this?<br><br></div><div>I'm using F90 by the way.<br></div><div><br><br></div><div>-Storm<br></div></div>