<div dir="ltr"><div dir="ltr">On Fri, Jun 10, 2022 at 1:15 PM NILTON SANTOS VALDIVIA <<a href="mailto:100442268@alumnos.uc3m.es">100442268@alumnos.uc3m.es</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello, <div><br></div><div>I was trying to load a sparse matrix from a .MAT file (and solve the linear system). But even though, I have extracted the A and b matrix and vector from this suite <b><a href="https://sparse.tamu.edu/FEMLAB/waveguide3D" target="_blank">https://sparse.tamu.edu/FEMLAB/waveguide3D</a></b> and saved the variables (A, b) in a MAT file as PETSC recommends, I couldn't be able to load the matrix. Is there something that I was doing wrong? or do you know a way to load a matrix from the above link?</div><div><br></div><div>Actually I was using <a href="https://petsc.org/main/src/ksp/ksp/tutorials/ex10.c.html" style="box-sizing:border-box;text-decoration-line:none;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:15px" target="_blank">src/ksp/ksp/tutorials/ex10.c.html</a> example to try to load a .MAT file (containing A and b) without success.</div></div></blockquote><div><br></div><div>Do you want to load a Matrix Market format matrix and vector? If so, this is what <a href="https://petsc.org/main/src/mat/tests/ex72.c.html">https://petsc.org/main/src/mat/tests/ex72.c.html</a> does.</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div> <br></div><div><div><div dir="ltr"><div dir="ltr">Best Regards,<div><br></div><div>NILTON SANTOS</div><div><br></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>