[petsc-dev] Line search

Matthew Knepley knepley at gmail.com
Wed Feb 15 08:40:30 CST 2017


On Wed, Feb 15, 2017 at 8:39 AM, Mark Adams <mfadams at lbl.gov> wrote:

> I am getting a lot of time in line search. see below. This is what I see
> with view:
>
>   SNESLineSearch Object: 1 MPI processes
>     type: basic
>     maxstep=1.000000e+08, minlambda=1.000000e-12
>     tolerances: relative=1.000000e-08, absolute=1.000000e-15,
> lambda=1.000000e-08
>     maximum iterations=1
>
> Shouldn't my line search time be tiny?
>

Its not a coincidence that it is equal to the FunctionEval time. That is
the main cost.

  Matt


> SNESSolve              1 1.0 1.3222e-01 1.0 2.87e+08 1.0 2.7e+02 4.5e+03
> 0.0e+00 14 50  8  9  0  14 50  8  9  0 590811
> SNESFunctionEval       2 1.0 1.2035e-01 1.0 2.87e+08 1.0 2.7e+02 4.5e+03
> 0.0e+00 13 50  8  9  0  13 50  8  9  0 648067
> SNESJacobianEval       1 1.0 7.8297e-04 4.0 0.00e+00 0.0 0.0e+00 0.0e+00
> 0.0e+00  0  0  0  0  0   0  0  0  0  0     0
> SNESLineSearch         1 1.0 1.2040e-01 1.0 2.87e+08 1.0 2.7e+02 4.5e+03
> 0.0e+00 13 50  8  9  0  13 50  8  9  0 647734
> KSPGMRESOrthog         1 1.0 6.4087e-0413.4 2.24e+03 1.0 0.0e+00 0.0e+00
> 0.0e+00  0  0  0  0  0   0  0  0  0  0   952
> KSPSetUp               1 1.0 3.5691e-04 1.8 0.00e+00 0.0 0.0e+00 0.0e+00
> 0.0e+00  0  0  0  0  0   0  0  0  0  0     0
> KSPSolve               1 1.0 1.1965e-02 1.1 4.49e+05 1.0 0.0e+00 0.0e+00
> 0.0e+00  1  0  0  0  0   1  0  0  0  0 10199
>



-- 
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-dev/attachments/20170215/43afbbe5/attachment.html>


More information about the petsc-dev mailing list