[dune-pdelab] Number of Newton Iterations

Markus Blatt markus at dr-blatt.de
Wed Jul 30 15:23:15 CEST 2014


Hi Thomas,

On Wed, Jul 30, 2014 at 10:11:18AM +0200, Thomas Fetzer wrote:
> for my models I need a function, which returns the number of Newton
> iterations from newton.hh so that the time step size can be adapted.

Why do you need a function/patch for this? As you noted in your patch the
number of iterations is available from the NewtonResult, which in turn
is available via Newton::Result().

Therefore you can easily ontain this information via:

int its=newton.result().iterations;

or am I missing something?

Markus
-- 
Do you need more support with DUNE or HPC in general? 

Dr. Markus Blatt - HPC-Simulation-Software & Services http://www.dr-blatt.de
Hans-Bunte-Str. 8-10, 69123 Heidelberg, Germany
Tel.: +49 (0) 160 97590858
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <https://lists.dune-project.org/pipermail/dune-pdelab/attachments/20140730/a3d78056/attachment.sig>


More information about the dune-pdelab mailing list