Commit 194d9449 authored by Lukas Riedel's avatar Lukas Riedel

Add 'const' qualifiers to arguments and members of new GF adapters

parent 1a029521
......@@ -44,7 +44,8 @@ namespace Dune{
* @param p Parametrization class
* @see RichardsEquationParameter
*/
ConductivityAdapter(const typename Traits::GridViewType& gv, std::shared_ptr<P> p)
ConductivityAdapter(const typename Traits::GridViewType& gv,
const std::shared_ptr<P> p)
: _gv(gv)
, _p(p)
{}
......@@ -78,7 +79,7 @@ namespace Dune{
private:
const typename Traits::GridViewType _gv;
std::shared_ptr<P> _p;
const std::shared_ptr<P> _p;
};
}
......
......@@ -46,7 +46,9 @@ namespace Dune{
* @param p Parametrization class
* @see RichardsEquationParameter
*/
SaturationAdapter(std::shared_ptr<GF> gf_h, const typename Traits::GridViewType& gv, std::shared_ptr<P> p)
SaturationAdapter(const std::shared_ptr<GF> gf_h,
const typename Traits::GridViewType& gv,
const std::shared_ptr<P> p)
: _gf_h(gf_h)
, _gv(gv)
, _p(p)
......@@ -79,9 +81,9 @@ namespace Dune{
}
private:
std::shared_ptr<GF> _gf_h;
const std::shared_ptr<GF> _gf_h;
const typename Traits::GridViewType _gv;
std::shared_ptr<P> _p;
const std::shared_ptr<P> _p;
};
}
......
......@@ -46,7 +46,9 @@ namespace Dune{
* @param p Parametrization class
* @see RichardsEquationParameter
*/
WaterContentAdapter(std::shared_ptr<GF> gf_h, const typename Traits::GridViewType& gv, std::shared_ptr<P> p)
WaterContentAdapter(const std::shared_ptr<GF> gf_h,
const typename Traits::GridViewType& gv,
const std::shared_ptr<P> p)
: _gf_h(gf_h)
, _gv(gv)
, _p(p)
......@@ -79,9 +81,9 @@ namespace Dune{
}
private:
std::shared_ptr<GF> _gf_h;
const std::shared_ptr<GF> _gf_h;
const typename Traits::GridViewType _gv;
std::shared_ptr<P> _p;
const std::shared_ptr<P> _p;
};
}
}
......
......@@ -33,7 +33,9 @@ namespace Dune{
* @param[in] x Shared pointer to a coefficients for a gfs
* @param[in] p Parameters for the richards equation
*/
WaterFluxAdapter(std::shared_ptr<GFS> gfs, std::shared_ptr<X> x, std::shared_ptr<Parameters> p)
WaterFluxAdapter(const std::shared_ptr<GFS> gfs,
const std::shared_ptr<X> x,
const std::shared_ptr<Parameters> p)
: _gfs(gfs)
, _p(p)
, _x(x)
......@@ -82,11 +84,11 @@ namespace Dune{
}
private:
std::shared_ptr<GFS> _gfs;
std::shared_ptr<Parameters> _p;
std::shared_ptr<X> _x;
DiscreteGridFunction _dgf_h;
DiscreteGridFunctionGradient _dgf_h_grad;
const std::shared_ptr<GFS> _gfs;
const std::shared_ptr<Parameters> _p;
const std::shared_ptr<X> _x;
const DiscreteGridFunction _dgf_h;
const DiscreteGridFunctionGradient _dgf_h_grad;
};
}
......
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