Skip to content

Commit b625320

Browse files
authored
Merge pull request #4562 from GitPaean/small_cleaning_up
removing something not used or not defined even
2 parents 65cf170 + 3cefb7d commit b625320

File tree

6 files changed

+0
-41
lines changed

6 files changed

+0
-41
lines changed

opm/input/eclipse/Schedule/Group/GuideRate.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -358,16 +358,6 @@ double Opm::GuideRate::eval_form(const GuideRateModel& model,
358358
return model.eval(oil_pot, gas_pot, wat_pot);
359359
}
360360

361-
double Opm::GuideRate::eval_group_pot() const
362-
{
363-
return 0.0;
364-
}
365-
366-
double Opm::GuideRate::eval_group_resvinj() const
367-
{
368-
return 0.0;
369-
}
370-
371361
void Opm::GuideRate::assign_grvalue(const std::string& wgname,
372362
const GuideRateModel& model,
373363
GuideRateValue&& value)

opm/input/eclipse/Schedule/Group/GuideRate.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,6 @@ class GuideRate
206206
const double oil_pot,
207207
const double gas_pot,
208208
const double wat_pot) const;
209-
double eval_group_pot() const;
210-
double eval_group_resvinj() const;
211209

212210
void assign_grvalue(const std::string& wgname,
213211
const GuideRateModel& model,

opm/input/eclipse/Schedule/Schedule.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2180,11 +2180,6 @@ File {} line {}.)", pattern, location.keyword, location.filename, location.linen
21802180
return fmt::format("{:04d}-{:02d}-{:02d}" , ts.year(), ts.month(), ts.day());
21812181
}
21822182

2183-
std::string Schedule::simulationDays(std::size_t currentStep) const {
2184-
const double sim_time { this->m_static.m_unit_system.from_si(UnitSystem::measure::time, simTime(currentStep)) } ;
2185-
return fmt::format("{} {}", sim_time, this->m_static.m_unit_system.name(UnitSystem::measure::time));
2186-
}
2187-
21882183
namespace {
21892184

21902185
// Duplicated from Well.cpp

opm/input/eclipse/Schedule/Schedule.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,6 @@ namespace Opm {
325325
WellProducerCMode getGlobalWhistctlMmode(std::size_t timestep) const;
326326

327327
const UDQConfig& getUDQConfig(std::size_t timeStep) const;
328-
void evalAction(const SummaryState& summary_state, std::size_t timeStep);
329328

330329
GTNode groupTree(std::size_t report_step) const;
331330
GTNode groupTree(const std::string& root_node, std::size_t report_step) const;
@@ -526,7 +525,6 @@ namespace Opm {
526525

527526
void updateGuideRateModel(const GuideRateModel& new_model, std::size_t report_step);
528527
GTNode groupTree(const std::string& root_node, std::size_t report_step, std::size_t level, const std::optional<std::string>& parent_name) const;
529-
bool checkGroups(const ParseContext& parseContext, ErrorGuard& errors);
530528
bool updateWellStatus( const std::string& well, std::size_t reportStep, WellStatus status, std::optional<KeywordLocation> = {});
531529
void addWellToGroup( const std::string& group_name, const std::string& well_name , std::size_t timeStep);
532530
void iterateScheduleSection(std::size_t load_start,
@@ -570,9 +568,7 @@ namespace Opm {
570568
std::vector<std::string> wellNames(const std::string& pattern,
571569
const HandlerContext& context,
572570
bool allowEmpty = false);
573-
std::vector<std::string> wellNames(const std::string& pattern, std::size_t timeStep, const std::vector<std::string>& matching_wells, InputErrorAction error_action, ErrorGuard& errors, const KeywordLocation& location) const;
574571
static std::string formatDate(std::time_t t);
575-
std::string simulationDays(std::size_t currentStep) const;
576572
void applyGlobalWPIMULT( const std::unordered_map<std::string, double>& wpimult_global_factor);
577573

578574
bool must_write_rst_file(std::size_t report_step) const;

opm/input/eclipse/Schedule/Well/WellTestConfig.cpp

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -162,25 +162,6 @@ const WellTestConfig::WTESTWell& WellTestConfig::get(const std::string& well) co
162162
}
163163

164164

165-
166-
std::string WellTestConfig::reasonToString(const Reason reason) {
167-
switch(reason) {
168-
case Reason::PHYSICAL:
169-
return std::string("PHYSICAL");
170-
case Reason::ECONOMIC:
171-
return std::string("ECONOMIC");
172-
case Reason::GROUP:
173-
return std::string("GROUP");
174-
case Reason::THP_DESIGN:
175-
return std::string("THP_DESIGN");
176-
case Reason::COMPLETION:
177-
return std::string("COMPLETION");
178-
default:
179-
throw std::runtime_error("unknown closure reason");
180-
}
181-
}
182-
183-
184165
bool WellTestConfig::empty() const {
185166
return this->wells.empty();
186167
}

opm/input/eclipse/Schedule/Well/WellTestConfig.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ class WellTestConfig {
120120
bool has(const std::string& well, Reason reason) const;
121121
const WTESTWell& get(const std::string& well) const;
122122

123-
static std::string reasonToString(const Reason reason);
124123
bool empty() const;
125124

126125
bool operator==(const WellTestConfig& data) const;

0 commit comments

Comments
 (0)