Silence unused argument warnings.

This commit is contained in:
Atgeirr Flø Rasmussen 2019-04-05 18:07:46 +02:00 committed by Markus Blatt
parent 0e1db0c6bd
commit 032701ffc9
2 changed files with 5 additions and 4 deletions

View File

@ -394,7 +394,7 @@ namespace Dune
template<class M, class X, class S, class PI, class A>
template<class C>
void AMGCPR<M,X,S,PI,A>::updateSolver(C& criterion, Operator& /* matrix */, const PI& pinfo)
void AMGCPR<M,X,S,PI,A>::updateSolver(C& /* criterion */, Operator& /* matrix */, const PI& /* pinfo */)
{
Timer watch;
smoothers_.reset(new Hierarchy<Smoother,A>);

View File

@ -450,9 +450,11 @@ public:
delete policy_;
delete coarseSolver_;
}
void updatePreconditioner(FineOperatorType& op,
void updatePreconditioner(FineOperatorType& /* op */,
std::shared_ptr<SmootherType> smoother,
CoarseLevelSolverPolicy& coarsePolicy){
CoarseLevelSolverPolicy& coarsePolicy)
{
//assume new matrix is not reallocated the new precondition should anyway be made
smoother_ = smoother;
if (coarseSolver_) {
@ -466,7 +468,6 @@ public:
}
}
void pre(FineDomainType& x, FineRangeType& b)
{
smoother_->pre(x,b);