<div dir="ltr">On Wed, Jan 30, 2013 at 7:32 PM, Geoffrey Irving <span dir="ltr"><<a href="mailto:irving@naml.us" target="_blank">irving@naml.us</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">I'm setting options via<br>
<br>
CHECK(PetscOptionsClear());<br>
CHECK(PetscOptionsInsert(&argc,&argv,0));<br>
<br>
a while after calling PetscInitialize(). If the options are<br>
<br>
-ksp_rtol 1e-3 -pc_factor_mat_ordering_type nd -ksp_type cg<br>
-pc_type icc -pc_factor_levels 0 -ksp_max_it 100<br>
<br>
it successfully caps CG iterations at 100. If I use<br>
<br>
-ksp_max_it 100 -ksp_rtol 1e-3 -pc_factor_mat_ordering_type nd<br>
-ksp_type cg -pc_type icc -pc_factor_levels 0<br>
<br>
the maximum iterations are 10000. I.e., -ksp_max_it work at the end<br>
but not at the beginning. What might be causing this order<br>
dependence? I'm using<br></blockquote><div><br></div><div style>If you are using straight up argv, then the first argument is always the program name</div><div style>and gets ignored.</div><div style><br></div><div style>
Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
[0]PETSC ERROR: Petsc Release Version 3.3.0, Patch 3, Wed Aug 29<br>
11:26:24 CDT 2012<br>
<br>
Thanks,<br>
Geoffrey<br>
</blockquote></div><br><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>