Skip to content
Snippets Groups Projects
Commit c47082eb authored by Sven Marnach's avatar Sven Marnach
Browse files

Remove const qualifier from matrix type.

The matrix type is also used for the ILU member variable, which is
initialised with a copy of the matrix and then inclompletely LU
decomposed.  This member variable must not be const.

[[Imported from SVN: r1045]]
parent 1b6f3754
Branches
Tags
No related merge requests found
......@@ -470,7 +470,7 @@ namespace Dune {
class SeqILU0 : public Preconditioner<X,Y> {
public:
//! \brief The matrix type the preconditioner is for.
typedef M matrix_type;
typedef typename Dune::remove_const<M>::type matrix_type;
//! \brief The domain type of the preconditioner.
typedef X domain_type;
//! \brief The range type of the preconditioner.
......@@ -526,7 +526,7 @@ namespace Dune {
//! \brief The relaxation factor to use.
field_type _w;
//! \brief The ILU0 decomposition of the matrix.
M ILU;
matrix_type ILU;
};
......@@ -545,7 +545,7 @@ namespace Dune {
class SeqILUn : public Preconditioner<X,Y> {
public:
//! \brief The matrix type the preconditioner is for.
typedef M matrix_type;
typedef typename Dune::remove_const<M>::type matrix_type;
//! \brief The domain type of the preconditioner.
typedef X domain_type;
//! \brief The range type of the preconditioner.
......@@ -601,7 +601,7 @@ namespace Dune {
private:
//! \brief ILU(n) decomposition of the matrix we operate on.
M ILU;
matrix_type ILU;
//! \brief The number of steps to perform in apply.
int _n;
//! \brief The relaxation factor to use.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment