mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-09-05 04:40:19 -05: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:
@@ -43,10 +43,10 @@ struct EnableBrine<TypeTag, TTag::EclFlowBrineProblem> {
|
||||
}}
|
||||
|
||||
namespace Opm {
|
||||
void flowEbosBrineSetDeck(double setupTime, std::shared_ptr<Deck>& deck,
|
||||
std::shared_ptr<EclipseState>& eclState,
|
||||
std::shared_ptr<Schedule>& schedule,
|
||||
std::shared_ptr<SummaryConfig>& summaryConfig)
|
||||
void flowEbosBrineSetDeck(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::EclFlowBrineProblem;
|
||||
using Vanguard = GetPropType<TypeTag, Properties::Vanguard>;
|
||||
|
||||
Reference in New Issue
Block a user