mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
commit
11ac39fa52
@ -1168,6 +1168,7 @@ public:
|
|||||||
int episodeIdx = this->episodeIndex();
|
int episodeIdx = this->episodeIndex();
|
||||||
this->applyActions(episodeIdx,
|
this->applyActions(episodeIdx,
|
||||||
simulator.time() + simulator.timeStepSize(),
|
simulator.time() + simulator.timeStepSize(),
|
||||||
|
simulator.vanguard().grid().comm(),
|
||||||
ecl_state,
|
ecl_state,
|
||||||
schedule,
|
schedule,
|
||||||
simulator.vanguard().actionState(),
|
simulator.vanguard().actionState(),
|
||||||
@ -1278,6 +1279,7 @@ public:
|
|||||||
|
|
||||||
void applyActions(int reportStep,
|
void applyActions(int reportStep,
|
||||||
double sim_time,
|
double sim_time,
|
||||||
|
Parallel::Communication comm,
|
||||||
EclipseState& ecl_state,
|
EclipseState& ecl_state,
|
||||||
Schedule& schedule,
|
Schedule& schedule,
|
||||||
Action::State& actionState,
|
Action::State& actionState,
|
||||||
@ -1323,6 +1325,15 @@ public:
|
|||||||
this->wellModel_.updateEclWells(reportStep, sim_update.affected_wells, summaryState);
|
this->wellModel_.updateEclWells(reportStep, sim_update.affected_wells, summaryState);
|
||||||
if (!sim_update.affected_wells.empty())
|
if (!sim_update.affected_wells.empty())
|
||||||
commit_wellstate = true;
|
commit_wellstate = true;
|
||||||
|
|
||||||
|
if (sim_update.tran_update) {
|
||||||
|
const auto& keywords = schedule[reportStep].geo_keywords();
|
||||||
|
ecl_state.apply_schedule_keywords( keywords );
|
||||||
|
eclBroadcast(comm, ecl_state.getTransMult() );
|
||||||
|
|
||||||
|
// re-compute transmissibility
|
||||||
|
transmissibilities_.update(true);
|
||||||
|
}
|
||||||
actionState.add_run(*action, simTime, std::move(actionResult));
|
actionState.add_run(*action, simTime, std::move(actionResult));
|
||||||
} else {
|
} else {
|
||||||
std::string msg = "The action: " + action->name() + " evaluated to false at " + ts;
|
std::string msg = "The action: " + action->name() + " evaluated to false at " + ts;
|
||||||
|
Loading…
Reference in New Issue
Block a user