Merge pull request #1563 from atgeirr/add-has-method-guiderate
Add GuideRate::has() method.
This commit is contained in:
commit
fcfed6e125
@ -70,6 +70,7 @@ namespace Opm {
|
||||
|
||||
EclipseState() = default;
|
||||
EclipseState(const Deck& deck);
|
||||
virtual ~EclipseState() = default;
|
||||
|
||||
const IOConfig& getIOConfig() const;
|
||||
IOConfig& getIOConfig();
|
||||
|
@ -81,6 +81,7 @@ public:
|
||||
double get(const std::string& well, Well::GuideRateTarget target) const;
|
||||
double get(const std::string& group, Group::GuideRateTarget target) const;
|
||||
double get(const std::string& name, GuideRateModel::Target model_target) const;
|
||||
bool has(const std::string& name) const;
|
||||
|
||||
private:
|
||||
void well_compute(const std::string& wgname, size_t report_step, double sim_time, double oil_pot, double gas_pot, double wat_pot);
|
||||
|
@ -105,6 +105,11 @@ double GuideRate::get(const std::string& name, GuideRateModel::Target model_targ
|
||||
}
|
||||
}
|
||||
|
||||
bool GuideRate::has(const std::string& name) const
|
||||
{
|
||||
return this->values.count(name) > 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void GuideRate::compute(const std::string& wgname, size_t report_step, double sim_time, double oil_pot, double gas_pot, double wat_pot) {
|
||||
|
Loading…
Reference in New Issue
Block a user