Skip to content
Snippets Groups Projects
Commit 07e1349c authored by Elias Pipping's avatar Elias Pipping
Browse files

[Cleanup] Do away with unnecessary copies

parent b72b6138
No related branches found
No related tags found
No related merge requests found
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
template <class ScalarVector, class Vector> template <class ScalarVector, class Vector>
AgeingLawStateUpdater<ScalarVector, Vector>::AgeingLawStateUpdater( AgeingLawStateUpdater<ScalarVector, Vector>::AgeingLawStateUpdater(
ScalarVector _alpha_initial, Dune::BitSetVector<1> const &_nodes, double _L, ScalarVector const &_alpha_initial, Dune::BitSetVector<1> const &_nodes,
double _V0) double _L, double _V0)
: alpha(_alpha_initial), nodes(_nodes), L(_L), V0(_V0) {} : alpha(_alpha_initial), nodes(_nodes), L(_L), V0(_V0) {}
template <class ScalarVector, class Vector> template <class ScalarVector, class Vector>
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
template <class ScalarVector, class Vector> template <class ScalarVector, class Vector>
class AgeingLawStateUpdater : public StateUpdater<ScalarVector, Vector> { class AgeingLawStateUpdater : public StateUpdater<ScalarVector, Vector> {
public: public:
AgeingLawStateUpdater(ScalarVector _alpha_initial, AgeingLawStateUpdater(ScalarVector const &_alpha_initial,
Dune::BitSetVector<1> const &_nodes, double _L, Dune::BitSetVector<1> const &_nodes, double _L,
double _V0); double _V0);
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
template <class ScalarVector, class Vector> template <class ScalarVector, class Vector>
SlipLawStateUpdater<ScalarVector, Vector>::SlipLawStateUpdater( SlipLawStateUpdater<ScalarVector, Vector>::SlipLawStateUpdater(
ScalarVector _alpha_initial, Dune::BitSetVector<1> const &_nodes, double _L, ScalarVector const &_alpha_initial, Dune::BitSetVector<1> const &_nodes,
double _V0) double _L, double _V0)
: alpha(_alpha_initial), nodes(_nodes), L(_L), V0(_V0) {} : alpha(_alpha_initial), nodes(_nodes), L(_L), V0(_V0) {}
template <class ScalarVector, class Vector> template <class ScalarVector, class Vector>
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
template <class ScalarVector, class Vector> template <class ScalarVector, class Vector>
class SlipLawStateUpdater : public StateUpdater<ScalarVector, Vector> { class SlipLawStateUpdater : public StateUpdater<ScalarVector, Vector> {
public: public:
SlipLawStateUpdater(ScalarVector _alpha_initial, SlipLawStateUpdater(ScalarVector const &_alpha_initial,
Dune::BitSetVector<1> const &_nodes, double _L, Dune::BitSetVector<1> const &_nodes, double _L,
double _V0); double _V0);
......
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