Skip to content
Snippets Groups Projects
Commit c33c55dc authored by Timo Koch's avatar Timo Koch
Browse files

[newton] Introduce NewtonEnableChop property for model specific chop algorithms

parent 55fb38a5
No related branches found
No related tags found
2 merge requests!617[WIP] Next,!360Improve Richards model - Add RichardsNC model
...@@ -100,6 +100,10 @@ NEW_PROP_TAG(NewtonResidualReduction); ...@@ -100,6 +100,10 @@ NEW_PROP_TAG(NewtonResidualReduction);
//! indicate whether both of the criteria should be satisfied to declare convergence //! indicate whether both of the criteria should be satisfied to declare convergence
NEW_PROP_TAG(NewtonSatisfyResidualAndShiftCriterion); 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 * \brief The number of iterations at which the Newton method
* should aim at. * should aim at.
...@@ -123,6 +127,7 @@ SET_BOOL_PROP(NewtonMethod, NewtonUseLineSearch, false); ...@@ -123,6 +127,7 @@ SET_BOOL_PROP(NewtonMethod, NewtonUseLineSearch, false);
SET_BOOL_PROP(NewtonMethod, NewtonEnableShiftCriterion, true); SET_BOOL_PROP(NewtonMethod, NewtonEnableShiftCriterion, true);
SET_BOOL_PROP(NewtonMethod, NewtonEnableResidualCriterion, false); SET_BOOL_PROP(NewtonMethod, NewtonEnableResidualCriterion, false);
SET_BOOL_PROP(NewtonMethod, NewtonSatisfyResidualAndShiftCriterion, false); SET_BOOL_PROP(NewtonMethod, NewtonSatisfyResidualAndShiftCriterion, false);
SET_BOOL_PROP(NewtonMethod, NewtonEnableChop, false);
SET_SCALAR_PROP(NewtonMethod, NewtonMaxRelativeShift, 1e-8); SET_SCALAR_PROP(NewtonMethod, NewtonMaxRelativeShift, 1e-8);
SET_SCALAR_PROP(NewtonMethod, NewtonResidualReduction, 1e-5); SET_SCALAR_PROP(NewtonMethod, NewtonResidualReduction, 1e-5);
SET_INT_PROP(NewtonMethod, NewtonTargetSteps, 10); SET_INT_PROP(NewtonMethod, NewtonTargetSteps, 10);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment