Allow insertion entry into ALQState for a well.

Needed when switching an injector to a producer.
This commit is contained in:
Markus Blatt committed 2025-03-18 22:28:37 +01:00
1 parent c800c89674
commit 5b528d6f44
3 files changed
+11

No files matched your search

+6
View File
@@ -41,6 +41,12 @@ ALQState<Scalar> ALQState<Scalar>::serializationTestObject()
return result;
}
template<class Scalar>
void ALQState<Scalar>::insert(const std::string& wname)
{
this->current_alq_.emplace(wname, 0.0);
}
template<class Scalar>
Scalar ALQState<Scalar>::get(const std::string& wname) const
{
+1
View File
@@ -37,6 +37,7 @@ public:
Scalar get(const std::string& wname) const;
void update_default(const std::string& wname, Scalar value);
void insert(const std::string& wname);
void set(const std::string& wname, Scalar value);
bool oscillation(const std::string& wname) const;
void update_count(const std::string& wname, bool increase);
+4
View File
@@ -277,6 +277,10 @@ public:
void shutWell(int well_index);
void stopWell(int well_index);
void switchToProducer(const std::string& name) {
alq_state.insert(name);
}
/// The number of phases present.
int numPhases() const
{