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

[newton] Pass current solution to newtonBeginStep

parent 4f8962ce
No related branches found
No related tags found
1 merge request!756Feature/small fixes newton
......@@ -206,7 +206,7 @@ public:
* \param u The initial solution
*/
template<class SolutionVector>
void newtonBegin(const SolutionVector &u)
void newtonBegin(const SolutionVector& u)
{
numSteps_ = 0;
}
......@@ -214,7 +214,8 @@ public:
/*!
* \brief Indicates the beginning of a Newton iteration.
*/
void newtonBeginStep()
template<class SolutionVector>
void newtonBeginStep(const SolutionVector& u)
{
lastShift_ = shift_;
if (numSteps_ == 0)
......
......@@ -102,7 +102,7 @@ public:
{
// notify the controller that we're about to start
// a new timestep
controller_->newtonBeginStep();
controller_->newtonBeginStep(uCurrentIter);
// make the current solution to the old one
if (controller_->newtonNumSteps() > 0)
......
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