Add boolean flag to determine whether crossflow is allowed in a well

This PR adds allow_cf to the wells structure that determine whether
crossflow is allowed or not. An extra argument is added to addWell(..)
to specify the allow_cf flag.
This commit is contained in:
Tor Harald Sandve committed 2015-10-06 15:54:20 +02:00
1 parent d54899ba07
commit 40ec39fa71
5 files changed
+35 -7

No files matched your search

+7
View File
@@ -106,6 +106,11 @@ struct Wells
* Internal management structure.
*/
void *data;
/**
* Array of booleans, if true crossflow is allowed in the well.
*/
bool *allow_cf;
};
@@ -185,6 +190,7 @@ create_wells(int nphases, int nwells, int nperf);
* ideally be track ordered.
* \param[in] WI Well production index per perforation, or NULL.
* \param[in] name Name of new well. NULL if no name.
* \param[in] allow_cf Boolean flag to determine whether crossflow is allowed or not.
* \param[in,out] W Existing set of wells to which new well will
* be added.
*
@@ -198,6 +204,7 @@ add_well(enum WellType type ,
const int *cells ,
const double *WI ,
const char *name ,
bool allow_cf ,
struct Wells *W );