mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
not handling SHUT wells when generating wells_multisegment
it fixed the 7th time step running for Norne.
This commit is contained in:
@@ -112,10 +112,13 @@ namespace Opm
|
|||||||
// well_state.init(wells, state, prev_well_state);
|
// well_state.init(wells, state, prev_well_state);
|
||||||
|
|
||||||
const std::vector<WellConstPtr>& wells_ecl = eclipse_state_->getSchedule()->getWells(timer.currentStepNum());
|
const std::vector<WellConstPtr>& wells_ecl = eclipse_state_->getSchedule()->getWells(timer.currentStepNum());
|
||||||
std::vector<WellMultiSegmentConstPtr> wells_multisegment(wells_ecl.size());
|
std::vector<WellMultiSegmentConstPtr> wells_multisegment;
|
||||||
// wells_multisegment.resize(wells_ecl.size());
|
wells_multisegment.reserve(wells_ecl.size());
|
||||||
for (size_t i = 0; i < wells_multisegment.size(); ++i) {
|
for (size_t i = 0; i < wells_ecl.size(); ++i) {
|
||||||
wells_multisegment[i].reset(new WellMultiSegment(wells_ecl[i], timer.currentStepNum(), wells));
|
if (wells_ecl[i]->getStatus(timer.currentStepNum()) == WellCommon::SHUT) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
wells_multisegment.push_back(std::make_shared<WellMultiSegment>(wells_ecl[i], timer.currentStepNum(), wells));
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
|||||||
Reference in New Issue
Block a user