From 44a34b6e524f30a4c7ffe551499a287bc2317750 Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Mon, 19 Nov 2012 18:40:08 +0000 Subject: [PATCH] preprocess now also calls preprocess for the dependant iteration step class [[Imported from SVN: r7435]] --- .../iterationsteps/minimalpolynomialextrapolationstep.hh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dune/solvers/iterationsteps/minimalpolynomialextrapolationstep.hh b/dune/solvers/iterationsteps/minimalpolynomialextrapolationstep.hh index 8e453b63..88f3fc64 100644 --- a/dune/solvers/iterationsteps/minimalpolynomialextrapolationstep.hh +++ b/dune/solvers/iterationsteps/minimalpolynomialextrapolationstep.hh @@ -42,7 +42,9 @@ public: /** \brief Retrieve the solution */ virtual VectorType getSol(); - /** \brief To be called before starting to iterate */ + /** \brief To be called before starting to iterate + \note This calls the preprocess method for the dependant iteration step class, too! + */ virtual void preprocess(); IterationStep<VectorType,BitVectorType>* iterationStep_; @@ -69,6 +71,8 @@ template<class VectorType, class BitVectorType> inline void MinimalPolynomialExtrapolationStep<VectorType, BitVectorType>::preprocess() { + iterationStep_->preprocess(); + xHistory_.resize(1); xHistory_[0] = *this->x_; -- GitLab