Skip to content
Snippets Groups Projects
Commit c17bb6ef authored by Oliver Sander's avatar Oliver Sander
Browse files

added a few consts

[[Imported from SVN: r2237]]
parent 87c44306
No related branches found
No related tags found
No related merge requests found
......@@ -18,14 +18,14 @@ namespace Dune {
IterationStep() {}
//! Constructor being given linear operator, solution and right hand side
IterationStep(OperatorType& mat, DiscFuncType& x, DiscFuncType& rhs) {
IterationStep(const OperatorType& mat, DiscFuncType& x, DiscFuncType& rhs) {
mat_ = &mat;
x_ = &x;
rhs_ = &rhs;
}
//! Set linear operator, solution and right hand side
void setProblem(OperatorType& mat, DiscFuncType& x, DiscFuncType& rhs) {
void setProblem(const OperatorType& mat, DiscFuncType& x, DiscFuncType& rhs) {
x_ = &x;
rhs_ = &rhs;
mat_ = &mat;
......@@ -38,7 +38,7 @@ namespace Dune {
virtual DiscFuncType getSol() = 0;
//! Return linear operator
virtual OperatorType* getMatrix() {return mat_;}
virtual const OperatorType* getMatrix() {return mat_;}
/** \brief Checks whether all relevant member variables are set
* \exception SolverError if the iteration step is not set up properly
......@@ -61,7 +61,7 @@ namespace Dune {
DiscFuncType* rhs_;
//! The linear operator
OperatorType* mat_;
const OperatorType* mat_;
/** \brief A flag for each degree of freedom stating whether the
* dof is dirichlet or not */
......
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