mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
EclGenericVanguard: rename setParams to defineSimulationModel
setParams is a rather generic method name, be more specific
This commit is contained in:
parent
d45a08a6cf
commit
05f92a1133
@ -69,13 +69,13 @@ EclGenericVanguard::EclGenericVanguard()
|
|||||||
|
|
||||||
EclGenericVanguard::~EclGenericVanguard() = default;
|
EclGenericVanguard::~EclGenericVanguard() = default;
|
||||||
|
|
||||||
void EclGenericVanguard::setParams(double setupTime,
|
void EclGenericVanguard::defineSimulationModel(double setupTime,
|
||||||
std::shared_ptr<EclipseState> eclState,
|
std::shared_ptr<EclipseState> eclState,
|
||||||
std::shared_ptr<Schedule> schedule,
|
std::shared_ptr<Schedule> schedule,
|
||||||
std::unique_ptr<UDQState> udqState,
|
std::unique_ptr<UDQState> udqState,
|
||||||
std::unique_ptr<Action::State> actionState,
|
std::unique_ptr<Action::State> actionState,
|
||||||
std::unique_ptr<WellTestState> wtestState,
|
std::unique_ptr<WellTestState> wtestState,
|
||||||
std::shared_ptr<SummaryConfig> summaryConfig)
|
std::shared_ptr<SummaryConfig> summaryConfig)
|
||||||
{
|
{
|
||||||
EclGenericVanguard::setupTime_ = setupTime;
|
EclGenericVanguard::setupTime_ = setupTime;
|
||||||
EclGenericVanguard::eclState_ = std::move(eclState);
|
EclGenericVanguard::eclState_ = std::move(eclState);
|
||||||
@ -104,11 +104,11 @@ void EclGenericVanguard::readDeck(const std::string& filename)
|
|||||||
summaryConfig, nullptr, false,
|
summaryConfig, nullptr, false,
|
||||||
false, false, {});
|
false, false, {});
|
||||||
|
|
||||||
EclGenericVanguard::setParams(setupTimer.elapsed(),
|
EclGenericVanguard::defineSimulationModel(setupTimer.elapsed(),
|
||||||
eclipseState, schedule,
|
eclipseState, schedule,
|
||||||
std::move(udqState),
|
std::move(udqState),
|
||||||
std::move(actionState),
|
std::move(actionState),
|
||||||
std::move(wtestState), summaryConfig);
|
std::move(wtestState), summaryConfig);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string EclGenericVanguard::canonicalDeckPath(const std::string& caseName)
|
std::string EclGenericVanguard::canonicalDeckPath(const std::string& caseName)
|
||||||
|
@ -101,13 +101,13 @@ public:
|
|||||||
/*!
|
/*!
|
||||||
* \brief Set the simulation configuration objects.
|
* \brief Set the simulation configuration objects.
|
||||||
*/
|
*/
|
||||||
static void setParams(double setupTime,
|
static void defineSimulationModel(double setupTime,
|
||||||
std::shared_ptr<EclipseState> eclState,
|
std::shared_ptr<EclipseState> eclState,
|
||||||
std::shared_ptr<Schedule> schedule,
|
std::shared_ptr<Schedule> schedule,
|
||||||
std::unique_ptr<UDQState> udqState,
|
std::unique_ptr<UDQState> udqState,
|
||||||
std::unique_ptr<Action::State> actionState,
|
std::unique_ptr<Action::State> actionState,
|
||||||
std::unique_ptr<WellTestState> wtestState,
|
std::unique_ptr<WellTestState> wtestState,
|
||||||
std::shared_ptr<SummaryConfig> summaryConfig);
|
std::shared_ptr<SummaryConfig> summaryConfig);
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief Return a reference to the internalized ECL deck.
|
* \brief Return a reference to the internalized ECL deck.
|
||||||
|
@ -211,13 +211,13 @@ void Main::readDeck(const std::string& deckFilename,
|
|||||||
|
|
||||||
void Main::setupVanguard()
|
void Main::setupVanguard()
|
||||||
{
|
{
|
||||||
EclGenericVanguard::setParams(this->setupTime_,
|
EclGenericVanguard::defineSimulationModel(this->setupTime_,
|
||||||
this->eclipseState_,
|
this->eclipseState_,
|
||||||
this->schedule_,
|
this->schedule_,
|
||||||
std::move(this->udqState_),
|
std::move(this->udqState_),
|
||||||
std::move(this->actionState_),
|
std::move(this->actionState_),
|
||||||
std::move(this->wtestState_),
|
std::move(this->wtestState_),
|
||||||
this->summaryConfig_);
|
this->summaryConfig_);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if HAVE_DAMARIS
|
#if HAVE_DAMARIS
|
||||||
|
Loading…
Reference in New Issue
Block a user