WELPI: Don't Inadvertently Overwrite Scaling Eligiblity

Since the Well stores a pointer to its connections, rather than the
connections themselves, we must take care not change the existing
state of the connections' WELPI eligibility flag.  Do the update
check on a copy of the connections instead of the real connections.

Pointy Hat: [at]bska
This commit is contained in:
Bård Skaflestad
2020-10-19 11:08:59 +02:00
parent f718cc1adc
commit f84858279f
4 changed files with 44 additions and 2 deletions
@@ -557,6 +557,8 @@ public:
bool handleCOMPLUMP(const DeckRecord& record);
bool handleWPIMULT(const DeckRecord& record);
void forceUpdateConnections(std::shared_ptr<WellConnections> connections_arg);
void filterConnections(const ActiveGridCells& grid);
ProductionControls productionControls(const SummaryState& st) const;
InjectionControls injectionControls(const SummaryState& st) const;