Name the well_t and well_control_t structures.

This commit is contained in:
Bård Skaflestad 2011-11-23 11:23:30 +01:00
parent 51111176db
commit 9a9b47a49a

View File

@ -28,17 +28,17 @@ extern "C" {
enum well_type { INJECTOR, PRODUCER };
enum well_control { BHP , RATE };
typedef struct {
struct WellCompletions {
int number_of_wells;
int *well_connpos;
int *well_cells;
} well_t;
};
typedef struct {
struct WellControls {
enum well_type *type;
enum well_control *ctrl;
double *target;
} well_control_t;
};
struct completion_data {
double *WI; /* Productivity index */
@ -47,6 +47,9 @@ struct completion_data {
double *phasemob; /* Phase mobility */
};
typedef struct WellCompletions well_t;
typedef struct WellControls well_control_t;
int
allocate_cell_wells(int nc, well_t *W, int **cwpos, int **cwells);