diff --git a/dumux/nonlinear/newtoncontroller.hh b/dumux/nonlinear/newtoncontroller.hh index 4a793a7b4d2b5bc030b1e9b52745fdf3f0899e5c..ff5713aec19410035237df200d5ba4464b24a927 100644 --- a/dumux/nonlinear/newtoncontroller.hh +++ b/dumux/nonlinear/newtoncontroller.hh @@ -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) diff --git a/dumux/nonlinear/newtonmethod.hh b/dumux/nonlinear/newtonmethod.hh index 139ff4163ed47c159ac10256ac3e3eecc2591bbd..812702a25264af9ca457f55c757f27cebf590905 100644 --- a/dumux/nonlinear/newtonmethod.hh +++ b/dumux/nonlinear/newtonmethod.hh @@ -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)