Added functions to get type, target and distr of *current* control.

This commit is contained in:
Joakim Hove
2014-01-06 14:40:03 +01:00
parent 4db3a70e05
commit 8132954b85
3 changed files with 33 additions and 3 deletions

View File

@@ -130,6 +130,9 @@ well_controls_add_new(enum WellControlType type , double target , const double *
enum WellControlType
well_controls_iget_type(const struct WellControls * ctrl, int control_index);
enum WellControlType
well_controls_get_current_type(const struct WellControls * ctrl);
void
well_controls_iset_type( struct WellControls * ctrls , int control_index , enum WellControlType type);
@@ -139,12 +142,18 @@ well_controls_iset_target(struct WellControls * ctrl, int control_index , double
double
well_controls_iget_target(const struct WellControls * ctrl, int control_index);
double
well_controls_get_current_target(const struct WellControls * ctrl);
const double *
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);
const double *
well_controls_get_current_distr(const struct WellControls * ctrl);
void
well_controls_assert_number_of_phases(struct WellControls * ctrl , int number_of_phases);