<html><body><div style="color:#000; background-color:#fff; font-family:bookman old style, new york, times, serif;font-size:16px"><div id="yui_3_16_0_1_1418538763977_14360"><span></span></div><div></div><div id="yui_3_16_0_1_1418538763977_14361" dir="ltr"> Thanks. Domenico. </div><div id="yui_3_16_0_1_1418538763977_14255"><div id="yui_3_16_0_1_1418538763977_14254">
<br></div></div><br>  <div style="font-family: bookman old style, new york, times, serif; font-size: 16px;" id="yui_3_16_0_1_1418538763977_14328"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_1_1418538763977_14327"> <div dir="ltr" id="yui_3_16_0_1_1418538763977_14326"> <hr size="1" id="yui_3_16_0_1_1418538763977_14329">  <font size="2" face="Arial" id="yui_3_16_0_1_1418538763977_14325"> <b><span style="font-weight:bold;">From:</span></b> Barry Smith <bsmith@mcs.anl.gov><br> <b><span style="font-weight: bold;">To:</span></b> domenico lahaye <domenico_lahaye@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> Petsc-users List <petsc-users@mcs.anl.gov> <br> <b><span style="font-weight: bold;">Sent:</span></b> Sunday, December 14, 2014 9:38 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [petsc-users] Implement new Krylov method within PETSc<br> </font> </div> <div class="y_msg_container"><br><br clear="none">  Domenico,<br clear="none"><br clear="none">    Please take a look at src/ksp/ksp/impls/cg/cg.c it contains comments at the top and in within the file on how one can copy the cg implementation and organize it for another Krylov method.<br clear="none"><br clear="none">   Barry<br clear="none"><br clear="none">   src/ksp/pc/impls/jacobi.c does a similar thing for preconditioners<br clear="none"><div class="qtdSeparateBR"><br><br></div><div class="yqt3125442055" id="yqtfd13166"><br clear="none">> On Dec 14, 2014, at 1:53 PM, domenico lahaye <<a shape="rect" ymailto="mailto:domenico_lahaye@yahoo.com" href="mailto:domenico_lahaye@yahoo.com">domenico_lahaye@yahoo.com</a>> wrote:<br clear="none">> <br clear="none">> Dear PETSc developers, <br clear="none">> <br clear="none">>   Could you pls. formulate guidelines on how to implement <br clear="none">> a new (to PETSc) Krylov subspace method (such as e.g. SQMR <br clear="none">> or IDR) in PETSc or refer me to such guidelines? <br clear="none">> <br clear="none">>   Thanks, Domenico. <br clear="none">>  <br clear="none">> <br clear="none"></div><br><br></div> </div> </div>  </div></body></html>