<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div id="yiv5826431829"><div><div style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt; background-color: rgb(255, 255, 255);"><div id="yiv5826431829yui_3_13_0_ym1_8_1386789957516_5"><span id="yiv5826431829yui_3_13_0_ym1_8_1386789957516_10">Satish,</span></div><div id="yiv5826431829yui_3_13_0_ym1_1_1386789957516_8301"><span id="yiv5826431829yui_3_13_0_ym1_8_1386789957516_11"></span> </div><div id="yiv5826431829yui_3_13_0_ym1_1_1386789957516_8302"><span id="yiv5826431829yui_3_13_0_ym1_8_1386789957516_12">I tried both ways that you suggested in Win-7 (and I tried to put the petscrc file in either the directory of executable or the directory where I run the executable), but it did not work. Note that I have to use
 file name "petscrc" instead of ".petscrc" since Windows does not allow the file name start with "."</span></div><div><span></span> </div><div><span>The content of the file is very simple:</span></div><div><span>-pc_type jacobi<br></span></div><div id="yiv5826431829yqt02344"><div style="display: none;" id="yiv5826431829yui_3_13_0_ym1_8_1386789957516_6"> <br clear="none"> <br clear="none"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> On Wednesday, December 11, 2013 1:26 PM, Qin Lu <lu_qin_2000@yahoo.com> wrote:<br clear="none"> </font> </div>  <div><div id="yiv5826431829"><div><div style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size:
 12pt; background-color: rgb(255, 255, 255);"><div><span>Thanks, Satish!</span></div><div><span></span> </div><div><span>Qin</span></div><div id="yiv5826431829yqt00547"><div style="display: block;"> <br clear="none"> <br clear="none"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> On Wednesday, December 11, 2013 12:27 PM, Satish Balay <balay@mcs.anl.gov> wrote:<br clear="none"> </font> </div>  <div>On Wed, 11 Dec 2013, Qin Lu wrote:<div id="yiv5826431829yqtfd87224"><br clear="none"><br clear="none">> Hello,<br clear="none">>  <br clear="none">> PETSc can read options from .petscrc file at home
 directory in Linux. Can it do the same thing in Windows? What is the file name and where the file should be placed?</div><br clear="none"><br clear="none">On windows - one can emulate this by setting "HOME" env variable to the location where you have .petscrc<br clear="none"><br clear="none">Also one can have .petscrc [or petscrc] in the location from which you run the petsc executable.<br clear="none"><br clear="none">Satish<br clear="none"><br clear="none"></div>  </div> </div>  </div></div> </div></div></div><br clear="none"><br clear="none"></div>  </div> </div>  </div>Any suggestion?</div><div> </div><div>Thanks,</div><div>Qin</div> </div></div></div></div></body></html>