The TS-GitLab will have to shut down towards the end of the year — please think about migrating your projects to GitLab.com or GitHub.
(This is still a very early message, meant to keep you informed. There will be more urgent ones in the future.)

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

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