well models: remove superfluous arguments

concretely this means the `eclState` and `schedule` arguments to the
`init()` and `beginTimeStep()` methods.
This commit is contained in:
Andreas Lauser
2019-05-03 14:07:15 +02:00
parent 7868e420c0
commit b9995f697f
4 changed files with 14 additions and 14 deletions
+6 -3
View File
@@ -101,9 +101,10 @@ public:
*
* I.e., well positions, names etc...
*/
void init(const Opm::EclipseState& eclState OPM_UNUSED,
const Opm::Schedule& deckSchedule)
void init()
{
const Opm::Schedule& deckSchedule = simulator_.vanguard().schedule();
// create the wells which intersect with the current process' grid
for (size_t deckWellIdx = 0; deckWellIdx < deckSchedule.numWells(); ++deckWellIdx)
{
@@ -130,8 +131,10 @@ public:
* \brief This should be called the problem before each simulation
* episode to adapt the well controls.
*/
void beginEpisode(const Opm::EclipseState& eclState, const Opm::Schedule& deckSchedule, bool wasRestarted=false)
void beginEpisode(bool wasRestarted=false)
{
const Opm::EclipseState& eclState = simulator_.vanguard().eclState();
const Opm::Schedule& deckSchedule = simulator_.vanguard().schedule();
unsigned episodeIdx = simulator_.episodeIndex();
WellConnectionsMap wellCompMap;