Skip to content
Snippets Groups Projects
Commit 74b9eaf6 authored by oliver.sander_at_tu-dresden.de's avatar oliver.sander_at_tu-dresden.de
Browse files

Make getIterationStep return std::shared_ptr instead of &

This allows to avoid casting trickery in the calling code.
parent e00a15b6
No related branches found
No related tags found
No related merge requests found
...@@ -88,15 +88,15 @@ namespace Dune { ...@@ -88,15 +88,15 @@ namespace Dune {
} }
/** \brief Get iteration step */ /** \brief Get iteration step */
const ItStep& getIterationStep() const const std::shared_ptr<ItStep> getIterationStep() const
{ {
return *iterationStep_; return iterationStep_;
} }
/** \brief Get iteration step */ /** \brief Get iteration step */
ItStep& getIterationStep() std::shared_ptr<ItStep> getIterationStep()
{ {
return *iterationStep_; return iterationStep_;
} }
/** \brief Set the error norm */ /** \brief Set the error norm */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment