Options can be read from:<br><br> 1) The command line<br><br> 2) a ~/.petscrc file<br><br> 3) the PETSC_OPTIONS environment variable<br><br> Matt<br><br><div><span class="gmail_quote">On 10/24/06, <b class="gmail_sendername">
Yixun Liu</b> <<a href="mailto:yxliu@fudan.edu.cn">yxliu@fudan.edu.cn</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff">
<div><font face="Bookman Old Style">Hi,</font></div>
<div><font face="Bookman Old Style"></font> </div>
<div><font face="Bookman Old Style">I am reading the source code of
$PETSC_DIR\src\ksp\ksp\examples\tutorials\ex2.c. Some codes are,</font></div>
<div><font face="Bookman Old Style">...</font></div>
<div><font face="Bookman Old Style">
PetscInitialize(&argc,&args,(char *)0,help);<br> ierr =
PetscOptionsGetInt(PETSC_NULL,"-m",&m,PETSC_NULL);CHKERRQ(ierr);</font></div>
<div><font face="Bookman Old Style">...</font></div>
<div><font face="Bookman Old Style">However, I cannot find the default option
database file .petscrc in user home directory. </font></div>
<div><font face="Bookman Old Style"></font> </div>
<div><font face="Bookman Old Style">Regards,</font></div>
<div><font face="Bookman Old Style"></font> </div>
<div><font face="Bookman Old Style">Yixun</font></div>
<div><br></div></div>
</blockquote></div><br><br clear="all"><br>-- <br>"Failure has a thousand explanations. Success doesn't need one" -- Sir Alec Guiness