Skip to content
Snippets Groups Projects
Commit f1d6491d authored by Klaus Mosthaf's avatar Klaus Mosthaf
Browse files

Added property ImplicitMaxTimeStepDivisions and set the default to 10.

Discussed with Bernd, reviewed by Melanie

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@10127 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent 737363dd
No related branches found
No related tags found
No related merge requests found
......@@ -509,7 +509,8 @@ public:
*/
void timeIntegration()
{
const int maxFails = 10;
const int maxFails =
GET_PARAM_FROM_GROUP(TypeTag, int, Implicit, MaxTimeStepDivisions);
for (int i = 0; i < maxFails; ++i) {
if (model_.update(newtonMethod_, newtonCtl_))
return;
......
......@@ -124,6 +124,10 @@ NEW_PROP_TAG(ElementMapper);
//! mapper for degrees of freedom
NEW_PROP_TAG(DofMapper);
//! the maximum allowed number of timestep divisions for the
//! Newton solver
NEW_PROP_TAG(ImplicitMaxTimeStepDivisions);
//! indicate whether discretization is box or not
NEW_PROP_TAG(ImplicitIsBox);
......
......@@ -147,6 +147,9 @@ SET_INT_PROP(ImplicitBase, LinearSolverMaxIterations, 250);
//! set number of equations of the mathematical model as default
SET_INT_PROP(ImplicitBase, LinearSolverBlockSize, GET_PROP_VALUE(TypeTag, NumEq));
//! set number of maximum timestep divisions to 10
SET_INT_PROP(ImplicitBase, ImplicitMaxTimeStepDivisions, 10);
} // namespace Properties
} // namespace Dumux
......
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