mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-14 09:52:01 -05:00
adding default constructor for DynamicListEconLimited
This commit is contained in:
1 parent
18b76331eb
commit
b0a4387573
1 file changed
+6
-3
@@ -33,20 +33,23 @@ namespace Opm
|
||||
{
|
||||
public:
|
||||
|
||||
DynamicListEconLimited() {
|
||||
}
|
||||
|
||||
bool wellShutEconLimited(const std::string& well_name) const {
|
||||
return std::find(m_shut_wells.begin(), m_shut_wells.end(), well_name) != m_shut_wells.end();
|
||||
};
|
||||
}
|
||||
|
||||
void addShutWell(const std::string& well_name) {
|
||||
assert( !wellShutEconLimited(well_name) );
|
||||
assert( !wellStoppedEconLimited(well_name) );
|
||||
|
||||
m_shut_wells.push_back(well_name);
|
||||
};
|
||||
}
|
||||
|
||||
bool wellStoppedEconLimited(const std::string& well_name) const {
|
||||
return std::find(m_stopped_wells.begin(), m_stopped_wells.end(), well_name) != m_stopped_wells.end();
|
||||
};
|
||||
}
|
||||
|
||||
void addStoppedWell(const std::string& well_name) {
|
||||
assert( !wellShutEconLimited(well_name) );
|
||||
|
||||
Reference in new issue
Block a user