mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-08-10 05:38:05 -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 EnableEnergy<TypeTag, TTag::EclFlowEnergyProblem> {
|
||||
}}
|
||||
|
||||
namespace Opm {
|
||||
void flowEbosEnergySetDeck(double setupTime, std::shared_ptr<Deck>& deck,
|
||||
std::shared_ptr<EclipseState>& eclState,
|
||||
std::shared_ptr<Schedule>& schedule,
|
||||
std::shared_ptr<SummaryConfig>& summaryConfig)
|
||||
void flowEbosEnergySetDeck(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::EclFlowEnergyProblem;
|
||||
using Vanguard = GetPropType<TypeTag, Properties::Vanguard>;
|
||||
|
||||
Reference in New Issue
Block a user