Skip to content
Snippets Groups Projects
Commit a5f5b2ba authored by Andreas Lauser's avatar Andreas Lauser
Browse files

grr. next try for output on retries..

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@7311 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent 31521105
No related branches found
No related tags found
No related merge requests found
......@@ -465,8 +465,8 @@ public:
void timeIntegration()
{
const int maxFails = 10;
Scalar dt = timeManager().timeStepSize();
for (int i = 0; i < maxFails; ++i) {
Scalar dt = timeManager().timeStepSize();
Scalar nextDt = dt / 2;
// update failed
......@@ -478,6 +478,7 @@ public:
return;
timeManager().setTimeStepSize(nextDt);
dt = nextDt;
}
DUNE_THROW(Dune::MathError,
......
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