Commit 98ca6f65 authored by Lukas Riedel's avatar Lukas Riedel

Use const pointers in Richards FV local operator

parent 283d3a7e
......@@ -59,8 +59,8 @@ public:
* @param[in] boundary The boundary class
*/
RichardsFVSpatialOperator(
std::shared_ptr<const Parameter> param,
std::shared_ptr<const Boundary> boundary
const std::shared_ptr<const Parameter>& param,
const std::shared_ptr<const Boundary>& boundary
) : _param(param)
, _boundary(boundary)
, _time(0.)
......@@ -287,9 +287,9 @@ public:
private:
/// Class providing equation parameters
std::shared_ptr<const Parameter> _param;
const std::shared_ptr<const Parameter> _param;
/// Class providing boundary conditions
std::shared_ptr<const Boundary> _boundary;
const std::shared_ptr<const Boundary> _boundary;
double _time;
};
......@@ -330,7 +330,7 @@ public:
*
* @param[in] param The parameter class
*/
RichardsFVTemporalOperator(std::shared_ptr<const Parameter> param)
RichardsFVTemporalOperator(const std::shared_ptr<const Parameter>& param)
: _param(param)
, _time(0.)
{}
......@@ -391,7 +391,7 @@ public:
private:
/// class providing equation parameters
std::shared_ptr<const Parameter> _param;
const std::shared_ptr<const Parameter> _param;
double _time;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment