Skip to content
Snippets Groups Projects
Commit dc015667 authored by Dominic Kempf's avatar Dominic Kempf Committed by Steffen Müthing
Browse files

make the build mode wrapper implementation a template specialization

The given implementation only makes sense for a BCRSMAtrix, thus it should
only be used for such. This is in line with ISTLs general coding style.
Also added bit of doc.
parent 660ccf1f
No related branches found
No related tags found
No related merge requests found
......@@ -100,11 +100,18 @@ namespace Dune {
* forwards any calls to operator[][] to the entry() method.The assembly code
* does not even necessarily need to know that the underlying matrix is sparse.
* Dune::AMG uses this to reassemble an existing matrix without code duplication.
* The compress() method of Dune::BCRSMatrix still has to be called from outside
* this wrapper after the pattern assembly is finished.
*/
template<class M>
class BuildModeWrapper
{};
template<class B, class A>
class BuildModeWrapper<Dune::BCRSMatrix<B, A> >
{
public:
typedef typename Dune:BCRSMatrix<B,A> M;
typedef typename M::block_type block_type;
typedef typename M::size_type size_type;
......
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