mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Added new function well_controls_iset_distr().
This commit is contained in:
@@ -174,6 +174,14 @@ well_controls_iget_distr(const struct WellControls * ctrl, int control_index) {
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
well_controls_iset_distr(const struct WellControls * ctrl, int control_index, const double * distr) {
|
||||
int offset = control_index * ctrl->number_of_phases;
|
||||
for (int p=0; p < ctrl->number_of_phases; p++)
|
||||
ctrl->distr[offset + p] = distr[p];
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
well_controls_assert_number_of_phases(struct WellControls * ctrl , int number_of_phases) {
|
||||
if (ctrl->num == 0)
|
||||
|
||||
Reference in New Issue
Block a user