<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 4 Mar 2019 at 09:20, Smith, Barry F. <<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</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"><br>
   By golly you are right, <br>
<br>
   I don't know how we got to the model where each implementation independently sets it to 0. Instead of a universal one. Minimizing code, of course, seems to point to a single location where it is set to zero.<br>
<br></blockquote><div><br></div><div>If you are planning to fix it, please consider what to do with ksp->rnorm, and also think about SNES. </div><div><br></div><div>PS: BTW, I have a bunch of custom routines in petsc4py, should any of them be added to PETSc?</div><div><div><a href="https://bitbucket.org/petsc/petsc4py/src/master/src/libpetsc4py/custom.h">https://bitbucket.org/petsc/petsc4py/src/master/src/libpetsc4py/custom.h</a><br></div></div><div><a href="https://bitbucket.org/petsc/petsc4py/src/master/src/include/custom.h">https://bitbucket.org/petsc/petsc4py/src/master/src/include/custom.h</a><br></div><div><br></div></div>-- <br><div dir="ltr" class="gmail_signature">Lisandro Dalcin<br>============<br>Research Scientist<br>Computer, Electrical and Mathematical Sciences & Engineering (CEMSE)<br>Extreme Computing Research Center (ECRC)<br>King Abdullah University of Science and Technology (KAUST)<br><a href="http://ecrc.kaust.edu.sa/" target="_blank">http://ecrc.kaust.edu.sa/</a><br><br>4700 King Abdullah University of Science and Technology<br>al-Khawarizmi Bldg (Bldg 1), Office # 0109<br>Thuwal 23955-6900, Kingdom of Saudi Arabia<br><a href="http://www.kaust.edu.sa" target="_blank">http://www.kaust.edu.sa</a><br><br>Office Phone: +966 12 808-0459</div></div></div></div>