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

Add method numLevels() which returns, well, the number of levels

Note: it does _not_ return the content of the numLevels_ variable,
but rather the number of transfer operators plus one.

[[Imported from SVN: r7397]]
parent 531994b1
No related branches found
No related tags found
No related merge requests found
...@@ -187,6 +187,12 @@ ...@@ -187,6 +187,12 @@
// virtual VectorType getSol(); // virtual VectorType getSol();
// virtual const MatrixType* getMatrix(); // virtual const MatrixType* getMatrix();
/** \brief Return total number of levels of the multigrid hierarchy */
virtual size_t numLevels() const
{
return mgTransfer_.size() + 1;
}
virtual int level() const {return level_;} virtual int level() const {return level_;}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment