Skip to content
Snippets Groups Projects
Commit 3f6b7b16 authored by Markus Blatt's avatar Markus Blatt
Browse files

Make number of levels available.

[[Imported from SVN: r1056]]
parent 1f17d626
Branches
Tags
No related merge requests found
......@@ -136,6 +136,8 @@ namespace Dune
template<class A1>
void getCoarsestAggregateNumbers(std::vector<std::size_t,A1>& cont);
std::size_t levels();
private:
/** @brief Multigrid cycle on a level. */
void mgc(typename Hierarchy<Smoother,A>::Iterator& smoother,
......@@ -296,6 +298,11 @@ namespace Dune
*coarseSmoother_, 1E-2, 10000, 0);
}
}
template<class M, class X, class S, class P, class A>
std::size_t AMG<M,X,S,P,A>::levels()
{
return matrices_->levels();
}
/** \copydoc Preconditioner::apply */
template<class M, class X, class S, class P, class A>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment