Skip to content
Snippets Groups Projects
Commit 7278e638 authored by Simon Praetorius's avatar Simon Praetorius
Browse files

Add specialization of ConstructionTraits for SeqGS

parent 85fce383
No related branches found
No related tags found
1 merge request!303Add specialization of ConstructionTraits for SeqGS
......@@ -202,6 +202,22 @@ namespace Dune
}
};
/**
* @brief Policy for the construction of the SeqGS smoother
*/
template<class M, class X, class Y, int l>
struct ConstructionTraits<SeqGS<M,X,Y,l> >
{
typedef DefaultConstructionArgs<SeqGS<M,X,Y,l> > Arguments;
static inline std::shared_ptr<SeqGS<M,X,Y,l>> construct(Arguments& args)
{
return std::make_shared<SeqGS<M,X,Y,l>>
(args.getMatrix(), args.getArgs().iterations, args.getArgs().relaxationFactor);
}
};
/**
* @brief Policy for the construction of the SeqJac smoother
*/
......
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