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

[Bugfix] fix having a typename and method named M

call the matrix "Matrix" instead.
parent dc015667
No related branches found
No related tags found
No related merge requests found
......@@ -111,25 +111,25 @@ namespace Dune {
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;
typedef BCRSMatrix<B,A> Matrix;
typedef typename Matrix::block_type block_type;
typedef typename Matrix::size_type size_type;
class row_object
{
public:
row_object(M& m, size_type i) : _m(m), _i(i) {}
row_object(Matrix& m, size_type i) : _m(m), _i(i) {}
block_type& operator[](size_type j) const
{
return _m.entry(_i,j);
}
private:
M& _m;
Matrix& _m;
size_type _i;
};
BuildModeWrapper(M& m) : _m(m) {}
BuildModeWrapper(Matrix& m) : _m(m) {}
row_object operator[](size_type i) const
{
......@@ -147,7 +147,7 @@ namespace Dune {
}
private:
M& _m;
Matrix& _m;
};
/**
......
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