Rewrite Newton Solver
Rewrite Newton solver and get rid of the diamond inheritance pattern. Instead the new Newton has objects for the line search and the termination criterion that can be changed at runtime.
Users should adapt to the new Newton but the old one is still available under the name OldNewton. This should behave just as before.
The changes are inspired by:
- The Newton solver by @smuething from his context base branch. (dune-pdelab, commit 707ee72f, file dune/pdelab/solver/newton.hh)
- The matrix free Newton implementation by @marian. (EXADune project, dune-pdelab, commit 70c0f644dee360259b36cb17888e6baf90da5056, file dune/pdelab/newton/matrixfreenewton.hh)
Edited by René Heß