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

Introduced template parameter to blockpreconditioner that describes the

wrapped sequential preconditioner. This is needed by AMG to automatically
construct the smoother hierarchies.

For Convenience and old code the templates parameter defaults to the abstract class
Preconditioner.

[[Imported from SVN: r513]]
parent 676f435d
No related branches found
No related tags found
No related merge requests found
......@@ -253,7 +253,7 @@ namespace Dune {
* is applied and then all owner data points are updates on
* all other processes.
*/
template<class X, class Y, class C>
template<class X, class Y, class C, class T=Preconditioner<X,Y> >
class BlockPreconditioner : public Preconditioner<X,Y> {
public:
//! \brief The domain type of the preconditioner.
......@@ -278,7 +278,7 @@ namespace Dune {
\param c The communication object for syncing overlap and copy
data points. (E.~g. OwnerOverlapCommunication )
*/
BlockPreconditioner (Preconditioner<X,Y>& p, const communication_type& c)
BlockPreconditioner (T& p, const communication_type& c)
: preconditioner(p), communication(c)
{ }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment