[petsc-users] order dependency in petsc options?

Matthew Knepley knepley at gmail.com
Wed Jan 30 19:38:35 CST 2013


On Wed, Jan 30, 2013 at 7:32 PM, Geoffrey Irving <irving at naml.us> wrote:

> I'm setting options via
>
>     CHECK(PetscOptionsClear());
>     CHECK(PetscOptionsInsert(&argc,&argv,0));
>
> a while after calling PetscInitialize().  If the options are
>
>     -ksp_rtol 1e-3 -pc_factor_mat_ordering_type nd -ksp_type cg
> -pc_type icc -pc_factor_levels 0 -ksp_max_it 100
>
> it successfully caps CG iterations at 100.  If I use
>
>     -ksp_max_it 100 -ksp_rtol 1e-3 -pc_factor_mat_ordering_type nd
> -ksp_type cg -pc_type icc -pc_factor_levels 0
>
> the maximum iterations are 10000.  I.e., -ksp_max_it work at the end
> but not at the beginning.  What might be causing this order
> dependence?  I'm using
>

If you are using straight up argv, then the first argument is always the
program name
and gets ignored.

   Matt


>     [0]PETSC ERROR: Petsc Release Version 3.3.0, Patch 3, Wed Aug 29
> 11:26:24 CDT 2012
>
> Thanks,
> Geoffrey
>



-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130130/26a26561/attachment.html>


More information about the petsc-users mailing list