Skip to content
Snippets Groups Projects
Commit 4730a0bd authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

use vector space operation in NewtonIteration

parent 58f369d5
No related branches found
No related tags found
No related merge requests found
......@@ -28,8 +28,7 @@ Flag NewtonIteration<Problem>::oneIteration(AdaptInfo& adaptInfo, Flag toDo)
prob_->solver()->apply(stepSolution_->impl(), prob_->rhsVector()->impl(), stat);
// u = u + d
Recursive::transform(prob_->solutionVector()->impl(),
Operation::Plus{}, prob_->solutionVector()->impl(), stepSolution_->impl());
prob_->solutionVector() += stepSolution_;
// L2-norm
err_ = integrate(sqr(this->stepSolution()), prob_->gridView());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment