[petsc-users] order dependency in petsc options?

Geoffrey Irving irving at naml.us
Wed Jan 30 19:44:53 CST 2013


On Wed, Jan 30, 2013 at 5:38 PM, Matthew Knepley <knepley at gmail.com> wrote:
> 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.

Yep, that was it.  Thanks.

Geoffrey


More information about the petsc-users mailing list