<div dir="ltr"><div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Thu, Aug 30, 2018 at 4:09 AM Yingjie Wu <<a href="mailto:yjwu16@gmail.com">yjwu16@gmail.com</a>> wrote:<br></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 dir="ltr"><div dir="ltr">Dear PETSc developer, </div><div dir="ltr"> Hi,</div><div dir="ltr">Thank you very much for helping me solve the problem before. Recently, I reinstalled my system and reinstalled PETSc and found the following problems: </div><div dir="ltr"><br></div><div dir="ltr">1. when I ran the example src/vec/vec/example/tutorial/ex3, there was a error: </div><div dir="ltr">[0] PETSC ERROR: PETSc installed without X windows, Microsoft Graphics, OpenGL ES, or GLUT / OpenGL on this machine </div><div dir="ltr">I installed PETSc following the official website. I don't know how to solve this error.</div></div></div></blockquote><div><br></div><div>If you want that support, you have to install one of those toolkits on your machine and then reconfigure PETSc.</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 dir="ltr"><div dir="ltr">2. I want to use matlab to do input and output data. My data is mainly the information of model parameters and initial values in each grid, which is usually stored in the form of matrix or vector. In src / vec / vec / example / tutorial / ex5, the input and output data in the binary file. dat, but I don't know how to open it for subsequent analysis. I want to input or output data to PETSc in the form of matrix and vector in MATLAB. I don't know how to use MATLAB as the input and output interface. It would be better if there were examples.</div></div></div></blockquote><div><br></div><div>The easiest way to get Matlab vectors and matrices into PETSc is to use the Matlab modules in PETSc:</div><div><br></div><div> <a href="https://bitbucket.org/petsc/petsc/src/master/share/petsc/matlab/">https://bitbucket.org/petsc/petsc/src/master/share/petsc/matlab/</a></div><div><br></div><div>which allow you to read and write PETSc binary format, like PetscBinaryWrite.m. Then you just use</div><div>VecLoad() and MatLoad() with a binary viewer.</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 dir="ltr"><div dir="ltr">3. Is there a web page that can query the usage of PETSc function? For example, <a href="Http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Viewer/PetscViewerBinaryOpen.html" target="_blank">Http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Viewer/PetscViewerBinaryOpen.html</a> </div><div dir="ltr">For beginners like me, a web page that queries how functions are used is very useful. </div></div></div></blockquote><div><br></div><div>I am not sure what the question means. The manual page you are referencing is exactly what we recommend looking at.</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 dir="ltr"><div>Thanks,</div><div>Yingjie</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></div>