Skip to content
Snippets Groups Projects
Commit 6afea2c2 authored by Oliver Sander's avatar Oliver Sander Committed by sander
Browse files

implement restarting

[[Imported from SVN: r4589]]
parent 08650b76
No related branches found
No related tags found
No related merge requests found
......@@ -153,7 +153,17 @@ void MinimalPolynomialExtrapolationStep<VectorType, BitVectorType>::iterate()
newIterate.axpy(c[i-1]/cSum, xHistory_[i]);
//std::cout << "y:\n" << newIterate << std::endl;
// Acceleration methods for nonlinear problems should be restarted
// every now and then
if (k==restart_) {
std::cout << "Restarting MPE..." << std::endl;
U_.resize(0);
xHistory_.resize(1);
xHistory_[0] = *this->x_;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment