[petsc-dev] -snes_ls_monitor option broken?

Brad Aagaard baagaard at usgs.gov
Wed Oct 12 10:51:44 CDT 2011


Barry,

I found my error. The line search diverges so it shrinks lambda and 
continues the line search. Other stuff is output between the last line 
search progress and the diverged line search message.

Thanks,
Brad


On 10/12/2011 08:30 AM, Barry Smith wrote:
>
> anlextwls003-010:tutorials barrysmith$ ./ex5 -snes_monitor -snes_ls_monitor
>    0 SNES Function norm 2.075636426232e-01
>      Line search: Using full step: fnorm 2.075636426232e-01 gnorm 1.489679343548e-02
>    1 SNES Function norm 1.489679343548e-02
>      Line search: Using full step: fnorm 1.489679343548e-02 gnorm 1.139674015480e-04
>    2 SNES Function norm 1.139674015480e-04
>      Line search: Using full step: fnorm 1.139674015480e-04 gnorm 6.924166573441e-09
>    3 SNES Function norm 6.924166573441e-09
>      Line search: Using full step: fnorm 6.924166573441e-09 gnorm 0.000000000000e+00
>    4 SNES Function norm 0.000000000000e+00
> anlextwls003-010:tutorials barrysmith$ petscmpiexec -n 2 ./ex5 -snes_monitor -snes_ls_monitor
>    0 SNES Function norm 2.075636426232e-01
>      Line search: Using full step: fnorm 2.075636426232e-01 gnorm 1.489679343548e-02
>    1 SNES Function norm 1.489679343548e-02
>      Line search: Using full step: fnorm 1.489679343548e-02 gnorm 1.139674015480e-04
>    2 SNES Function norm 1.139674015480e-04
>      Line search: Using full step: fnorm 1.139674015480e-04 gnorm 6.924166573441e-09
>    3 SNES Function norm 6.924166573441e-09
>      Line search: Using full step: fnorm 6.924166573441e-09 gnorm 0.000000000000e+00
>    4 SNES Function norm 0.000000000000e+00
>
>
> Please cut and paste everything that goes wrong.
>
>     Barry
>
>
>   On Oct 12, 2011, at 10:21 AM, Brad Aagaard wrote:
>
>> I am trying to debug a diverged line search issue and am having trouble getting line search progress output. In the recently revised line search code, the progress is shown via PetscViewerASCIIPrintf statements. The -snes_ls_monitor option looks like a boolean value but snes->ls_monitor is a viewer. Is there a bug in setting up the ls_monitor viewer or do I need to do more than just invoke -snes_ls_monitor to turn on reporting the line search progress?
>>
>> Thanks,
>> Brad
>
>




More information about the petsc-dev mailing list