putting all the guide rate update function in one single function

to make sure we only do once checking of the expiration of the guide
rates.
This commit is contained in:
Kai Bao
2021-06-28 23:12:18 +02:00
parent 42dd7ad56d
commit 12fa7a4ac8
3 changed files with 51 additions and 5 deletions

View File

@@ -100,6 +100,20 @@ namespace WellGroupHelpers
GroupState& group_state,
std::vector<double>& groupTargetReduction);
template <class Comm>
void updateGuideRates(const Group& group,
const Schedule& schedule,
const SummaryState& summary_state,
const PhaseUsage& pu,
int report_step,
double sim_time,
WellState& well_state,
const GroupState& group_state,
const Comm& comm,
GuideRate* guide_rate,
std::vector<double>& pot,
Opm::DeferredLogger& deferred_logge);
template <class Comm>
void updateGuideRateForProductionGroups(const Group& group,
const Schedule& schedule,