mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-25 15:10:09 -05:00
Allow insertion entry into ALQState for a well.
Needed when switching an injector to a producer.
This commit is contained in:
1 parent
c800c89674
commit
5b528d6f44
3 files changed
+11
No files matched your search
@@ -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
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user