Commit 7e342ec2 authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[newton] make newtonFail() receive variables

In case the default (non-experimental) assembly is used, the variables 
type is of type SolutionVector, so this is backwards-compatible with 
current derived classes.
parent 297fa9f1
......@@ -731,7 +731,7 @@ public:
* \brief Called if the Newton method broke down.
* This method is called _after_ newtonEnd()
*/
virtual void newtonFail(SolutionVector& u) {}
virtual void newtonFail(Variables& u) {}
/*!
* \brief Called if the Newton method ended successfully
......@@ -1033,9 +1033,7 @@ private:
if (!newtonConverged())
{
totalWastedIter_ += numSteps_;
// TODO: what should NewtonFail receive as arg?
auto uCurrentIter = Backend::dofs(vars);
newtonFail(uCurrentIter);
newtonFail(vars);
return false;
}
......@@ -1062,9 +1060,7 @@ private:
totalWastedIter_ += numSteps_;
// TODO: what should NewtonFail receive as arg?
auto uCurrentIter = Backend::dofs(vars);
newtonFail(uCurrentIter);
newtonFail(vars);
return false;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment