mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Changed calling convention for shared pointers.
Expect non-reference type shared pointers arguments instead of references to shared pointer. This will make it clear to the caller that the called function is making a copy of the pointer for its own use and not trying to modify the original pointer of the caller.
This commit is contained in:
@@ -66,10 +66,10 @@ public:
|
||||
}}
|
||||
|
||||
namespace Opm {
|
||||
void flowEbosGasWaterSetDeck(double setupTime, std::shared_ptr<Deck>& deck,
|
||||
std::shared_ptr<EclipseState>& eclState,
|
||||
std::shared_ptr<Schedule>& schedule,
|
||||
std::shared_ptr<SummaryConfig>& summaryConfig)
|
||||
void flowEbosGasWaterSetDeck(double setupTime, std::shared_ptr<Deck> deck,
|
||||
std::shared_ptr<EclipseState> eclState,
|
||||
std::shared_ptr<Schedule> schedule,
|
||||
std::shared_ptr<SummaryConfig> summaryConfig)
|
||||
{
|
||||
using TypeTag = Properties::TTag::EclFlowGasWaterProblem;
|
||||
using Vanguard = GetPropType<TypeTag, Properties::Vanguard>;
|
||||
|
||||
Reference in New Issue
Block a user