<div><div><br></div></div><div><br><div class="gmail_quote"><div>On Thu, 16 Mar 2017 at 07:16, Matthew Knepley <<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_msg">Hi Valentin,<div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Have you seen this example: <a href="https://bitbucket.org/petsc/petsc/src/1830d94e4628b31f970259df1d58bc250c9af32a/src/ksp/ksp/examples/tutorials/ex2f.F?at=master&fileviewer=file-view-default" class="gmail_msg" target="_blank">https://bitbucket.org/petsc/petsc/src/1830d94e4628b31f970259df1d58bc250c9af32a/src/ksp/ksp/examples/tutorials/ex2f.F?at=master&fileviewer=file-view-default</a></div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Would that be enough to get started?</div></div></blockquote><div><br></div><div>Matt is correct. The best way to get into PETSc is by studying the example codes provided in the source tree.</div><div><br></div><div>As a precursor to studying fortran examples, you should take a look at this page and decided which PETSc-fortran approach you wish to use:</div><div><br></div><div><a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/UsingFortran.html">http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/UsingFortran.html</a><br></div><div><br></div><div>Thanks,</div><div> Dave</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_msg"><div class="gmail_msg"></div></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_msg"><div class="gmail_msg"></div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg"> Thanks,</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg"> Matt</div></div><div class="gmail_extra gmail_msg"></div><div class="gmail_extra gmail_msg"><br class="gmail_msg"><div class="gmail_quote gmail_msg">On Thu, Mar 16, 2017 at 12:37 AM, Валентин Егоров <span class="gmail_msg"><<a href="mailto:egorow.walentin@gmail.com" class="gmail_msg" target="_blank">egorow.walentin@gmail.com</a>></span> wrote:<br class="gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_msg">Hello! <div class="gmail_msg">My name is Valentin Egorov. I am from Russia. And I have a question for you about PETSC. I would like to make a programm on Fortran with PETSC, but I can't. I have a matrix 400*400. I have also vector B with 400 elements. I need to solve linear equations. Could you help me to do it. I can't understand how use PETSC in Fortran? In fortran programm? And where to put matrix elements?</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Sincerely, Valentin Egorov!</div></div>
</blockquote></div><br class="gmail_msg"><br clear="all" class="gmail_msg"><div class="gmail_msg"><br class="gmail_msg"></div></div><div class="gmail_extra gmail_msg">-- <br class="gmail_msg"><div class="m_-3275320538757946434gmail_signature gmail_msg" data-smartmail="gmail_signature">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br class="gmail_msg">-- Norbert Wiener</div>
</div></blockquote></div></div>