Absolutely not!
Run your code again with the command line args Barry suggested.

./my.app -ksp_monitor_true_residual -ksp_monitor_singular_value

As long as you have called KSPSetFromOptions() (which from your code
snippet it seems you have) these options will take effect.





On 25 April 2014 00:24, Oo <[email protected]> wrote:

>
> Configure PETSC again?
>
> ------------------ Original ------------------
> *From: * "Dave May";<[email protected]>;
> *Send time:* Friday, Apr 25, 2014 6:20 AM
> *To:* "Oo "<[email protected]>;
> *Cc:* "Barry Smith"<[email protected]>; "Matthew Knepley"<
> [email protected]>; "petsc-users"<[email protected]>;
> *Subject: * Re: [petsc-users] Convergence_Eigenvalues_k=3
>
> On the command line
>
>
> On 25 April 2014 00:11, Oo <[email protected]> wrote:
>
>>
>> Where should I put "
>> -ksp_monitor_true_residual -ksp_monitor_singular_value " ?
>>
>> Thanks,
>>
>> Meng
>>
>>
>> ------------------ Original ------------------
>> *From: * "Barry Smith";<[email protected]>;
>> *Date: * Apr 25, 2014
>> *To: * "Matthew Knepley"<[email protected]>;
>> *Cc: * "Oo "<[email protected]>; "petsc-users"<[email protected]>;
>>
>> *Subject: * Re: [petsc-users] Convergence_Eigenvalues_k=3
>>
>>
>>    There are also a great deal of “bogus” numbers that have no meaning
>> and many zeros. Most of these are not the eigenvalues of anything.
>>
>>    Run the two cases with -ksp_monitor_true_residual
>> -ksp_monitor_singular_value and send the output
>>
>>   Barry
>>
>>
>> On Apr 24, 2014, at 4:53 PM, Matthew Knepley <[email protected]> wrote:
>>
>> > On Thu, Apr 24, 2014 at 12:57 PM, Oo <[email protected]> wrote:
>> >
>> > Hi,
>> >
>> > For analysis the convergence of linear solver,
>> > I meet a problem.
>> >
>> > One is the list of Eigenvalues whose linear system which has a
>> convergence solution.
>> > The other is the list of Eigenvalues whose linear system whose solution
>> does not converge (convergenceReason=-3).
>> >
>> > These are just lists of numbers. It does not tell us anything about the
>> computation. What is the problem you are having?
>> >
>> >   Matt
>> >
>> > Do you know what kind of method can be used to obtain a convergence
>> solution for our non-convergence case?
>> >
>> > Thanks,
>> >
>> > Meng
>> >
>> >
>> >
>> > --
>> > 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
>>
>> .
>>
>
>

Reply via email to