<div dir="ltr">On Thu, Sep 5, 2013 at 11:35 AM, Mark F. Adams <span dir="ltr"><<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><div>On Sep 5, 2013, at 6:16 AM, Matthew Knepley <<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>> wrote:</div>
<br><blockquote type="cite"><div dir="ltr">On Thu, Sep 5, 2013 at 1:19 AM, Mark F. Adams <span dir="ltr"><<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>></span> wrote:<br><div class="gmail_extra">
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div>In <a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscInitialize.html" target="_blank">http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscInitialize.html</a> I see:</div>

<br><div><table border="0" cellpadding="0" cellspacing="0" style="font-family:Times"><tbody><tr><td align="LEFT" valign="TOP"><b>file</b></td><td>- [optional] PETSc database file, also checks ~username/.petscrc and .petscrc use NULL to not check for code specific file. Use -skip_petscrc in the code specific file to skip the .petscrc files</td>

</tr><tr></tr></tbody></table><br></div><div>I don't understand what "<span style="font-family:Times">Use -skip_petscrc in the code specific file</span>" means.  In looking at the code it seems like this line should read something like:</div>

<div><br></div><div><font face="Times">… If you do not want to use a resource file, use NULL and add -skip_petscrc to the command line.</font></div></div></blockquote></div><br>Here is what it is trying to say. There are three files we can check:</div>

<div class="gmail_extra"><br></div><div class="gmail_extra"> 1) ~username/.petscrc</div><div class="gmail_extra"> 2) cwd/.petscrc</div><div class="gmail_extra"> 3) "code specific file", whose name is passed into PetscIntitialize()</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">If you pass in NULL to PetscInitialize(), it will not check option 3). If you pass in a real name to PetscIntiialize(), and</div><div class="gmail_extra">in the "code specific file" you put -skpi_petscrc, then it will not check options 1) and 2).</div>
</div></blockquote><div><br></div><div>OK, I'm being dense but I think to be explicit you need to add "If you pass in NULL and use -skip_petscrc on the command line then no files will be checked."</div><div>
<br></div><div>I wanted to not have files get checked and added -skip_petscrc to the command line but this was not sufficient.  I needed to change the code to use NULL (or I told my user to do so).  Sorry but I could not figure this out from the docs or even your better explanation w/o looking at the code.  It is natural to want to just add a command line option w/o recompiling, and this would be possible (not that I'm volunteering to do it) and would fit the PETSc philosophy of using command lines args and not user code to control.  Perhaps this is a dummy proof doc:</div>
<div><br></div><div>There are three files we can check:<br><br> 1) ~username/.petscrc<br> 2) cwd/.petscrc and cwd/petscrc<br> 3) This code specific file.<br><br>If you pass in NULL, it will not check option 3) and if you additionally use -skip_petsc on the command line then no files will checked. If you pass in a real file name, and you put -skpi_petscrc in this file, then it will not check options 1) and 2).</div>
</div></div></blockquote></div><br>Why don't we change it so that not even the "code specific file" is checked with passing -skip_petscrc? I think this makes more sense</div><div class="gmail_extra">and it would solve Mark's problem, and likely other future problems.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">   Matt<br clear="all"><div><br></div>-- <br>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>