From c33c55dc24740a92bc719e536abfea6c306928a8 Mon Sep 17 00:00:00 2001 From: Timo Koch <timo.koch@iws.uni-stuttgart.de> Date: Mon, 13 Feb 2017 16:22:42 +0100 Subject: [PATCH] [newton] Introduce NewtonEnableChop property for model specific chop algorithms --- dumux/nonlinear/newtoncontroller.hh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dumux/nonlinear/newtoncontroller.hh b/dumux/nonlinear/newtoncontroller.hh index 4d74c38eb7..8f56886e01 100644 --- a/dumux/nonlinear/newtoncontroller.hh +++ b/dumux/nonlinear/newtoncontroller.hh @@ -100,6 +100,10 @@ NEW_PROP_TAG(NewtonResidualReduction); //! indicate whether both of the criteria should be satisfied to declare convergence NEW_PROP_TAG(NewtonSatisfyResidualAndShiftCriterion); +//! indicate whether after each newton step the solution is chopped, e.g. to +//! physically sensible values (if a chopper is implemented for this model) +NEW_PROP_TAG(NewtonEnableChop); + /*! * \brief The number of iterations at which the Newton method * should aim at. @@ -123,6 +127,7 @@ SET_BOOL_PROP(NewtonMethod, NewtonUseLineSearch, false); SET_BOOL_PROP(NewtonMethod, NewtonEnableShiftCriterion, true); SET_BOOL_PROP(NewtonMethod, NewtonEnableResidualCriterion, false); SET_BOOL_PROP(NewtonMethod, NewtonSatisfyResidualAndShiftCriterion, false); +SET_BOOL_PROP(NewtonMethod, NewtonEnableChop, false); SET_SCALAR_PROP(NewtonMethod, NewtonMaxRelativeShift, 1e-8); SET_SCALAR_PROP(NewtonMethod, NewtonResidualReduction, 1e-5); SET_INT_PROP(NewtonMethod, NewtonTargetSteps, 10); -- GitLab