diff --git a/opm/core/WellsGroup.cpp b/opm/core/WellsGroup.cpp index 6c8649a63..e1f198f36 100644 --- a/opm/core/WellsGroup.cpp +++ b/opm/core/WellsGroup.cpp @@ -456,7 +456,7 @@ namespace Opm } } // anonymous namespace - std::tr1::shared_ptr createWellsGroup(std::string name, const EclipseGridParser& deck) + std::tr1::shared_ptr createWellsGroup(const std::string& name, const EclipseGridParser& deck) { std::tr1::shared_ptr return_value; diff --git a/opm/core/WellsGroup.hpp b/opm/core/WellsGroup.hpp index 5cf1ae74d..f31f3aff9 100644 --- a/opm/core/WellsGroup.hpp +++ b/opm/core/WellsGroup.hpp @@ -178,8 +178,10 @@ namespace Opm int self_index_; }; - /// Doc me! - std::tr1::shared_ptr createWellsGroup(std::string name, + /// Creates the WellsGroupInterface for the given name + /// \param[in] name the name of the wells group. + /// \param[in] deck the deck from which to fetch information. + std::tr1::shared_ptr createWellsGroup(const std::string& name, const EclipseGridParser& deck);