Refactor per-perforation code into separate function.

Also make some methods const.
This commit is contained in:
Atgeirr Flø Rasmussen
2020-11-03 11:11:00 +01:00
parent 6f7e83a2ce
commit cb928f90f0
4 changed files with 268 additions and 182 deletions

View File

@@ -511,13 +511,13 @@ namespace Opm
const std::vector<double>& B_avg,
Opm::DeferredLogger& deferred_logger);
void scaleProductivityIndex(const int perfIdx, double& productivity_index, const bool new_well, Opm::DeferredLogger& deferred_logger);
void scaleProductivityIndex(const int perfIdx, double& productivity_index, const bool new_well, Opm::DeferredLogger& deferred_logger) const;
void initCompletions();
// count the number of times an output log message is created in the productivity
// index calculations
int well_productivity_index_logger_counter_;
mutable int well_productivity_index_logger_counter_;
bool checkConstraints(WellState& well_state,
const Schedule& schedule,