mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Do not pass ecl wells to WellTestState::updateWells()
This commit is contained in:
parent
c599402318
commit
0e9d634397
@ -385,12 +385,14 @@ namespace Opm {
|
|||||||
const auto& wtest_config = schedule()[timeStepIdx].wtest_config();
|
const auto& wtest_config = schedule()[timeStepIdx].wtest_config();
|
||||||
if (!wtest_config.empty()) { // there is a WTEST request
|
if (!wtest_config.empty()) { // there is a WTEST request
|
||||||
const std::vector<std::string> wellsForTesting = wellTestState()
|
const std::vector<std::string> wellsForTesting = wellTestState()
|
||||||
.updateWells(wtest_config, wells_ecl_, simulationTime);
|
.updateWells(wtest_config, simulationTime);
|
||||||
|
|
||||||
for (const std::string& well_name : wellsForTesting) {
|
for (const std::string& well_name : wellsForTesting) {
|
||||||
// this is the well we will test
|
const auto& ws = this->wellState().well(well_name);
|
||||||
WellInterfacePtr well = createWellForWellTest(well_name, timeStepIdx, deferred_logger);
|
if (ws.status != Well::Status::OPEN)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
WellInterfacePtr well = createWellForWellTest(well_name, timeStepIdx, deferred_logger);
|
||||||
// some preparation before the well can be used
|
// some preparation before the well can be used
|
||||||
well->init(&phase_usage_, depth_, gravity_, local_num_cells_, B_avg_);
|
well->init(&phase_usage_, depth_, gravity_, local_num_cells_, B_avg_);
|
||||||
const Well& wellEcl = schedule().getWell(well_name, timeStepIdx);
|
const Well& wellEcl = schedule().getWell(well_name, timeStepIdx);
|
||||||
|
Loading…
Reference in New Issue
Block a user