mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
remove unused code
This commit is contained in:
parent
19318e5019
commit
a76ae214b8
@ -87,48 +87,6 @@ typedef struct LegacyWellCompletions well_t;
|
||||
*/
|
||||
typedef struct LegacyWellControls well_control_t;
|
||||
|
||||
/**
|
||||
* Allocate cell-to-well mapping (as a sparse array).
|
||||
*
|
||||
* @param[in] nc Total number of cells.
|
||||
* @param[in] W Well topology (well-to-cell mapping).
|
||||
* @param[out] cwpos Indirection array. Points to array of size
|
||||
* <CODE>nc + 1</CODE> if successful.
|
||||
* @param[out] cwells Cell-to-well mapping. Points to array
|
||||
* of size <CODE>W->well_connpos[
|
||||
* W->number_of_wells]</CODE> if successful.
|
||||
* @return Positive number (size of <CODE>*cwells</CODE>)
|
||||
* if successful. Zero in case of allocation failure.
|
||||
*/
|
||||
int
|
||||
allocate_cell_wells(int nc, well_t *W, int **cwpos, int **cwells);
|
||||
|
||||
/**
|
||||
* Dispose of memory resources allocated using function
|
||||
* allocate_cell_wells().
|
||||
*
|
||||
* Following a call to deallocate_cell_wells(), the input pointers
|
||||
* are no longer valid.
|
||||
*
|
||||
* @param[in,out] cvpos Cell-to-well start pointers.
|
||||
* @param[in,out] cwells Cell-to-well mapping.
|
||||
*/
|
||||
void
|
||||
deallocate_cell_wells(int *cvpos, int *cwells);
|
||||
|
||||
/**
|
||||
* Construct cell-to-well mapping (i.e., transpose the
|
||||
* well-to-cell mapping represented by <CODE>W->well_cells</CODE>).
|
||||
*
|
||||
* @param[in] nc Total number of cells.
|
||||
* @param[in] W Well topology (well-to-cell mapping).
|
||||
* @param[out] cwpos Cell-to-well start pointers.
|
||||
* @param[out] cwells Cell-to-well mapping.
|
||||
*/
|
||||
void
|
||||
derive_cell_wells(int nc, well_t *W, int *cwpos, int *cwells);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@ -91,43 +91,6 @@ struct compr_quantities_gen {
|
||||
double *voldiscr;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Create management structure capable of storing derived fluid quantities
|
||||
* pertaining to a reservoir model of a particular size.
|
||||
*
|
||||
* The resources acquired using function compr_quantities_gen_allocate() must
|
||||
* be released using the destructor function compr_quantities_gen_deallocate().
|
||||
*
|
||||
* @param[in] nc Number of grid cells
|
||||
* @param[in] nf Number of grid interfaces
|
||||
* @param[in] np Number of fluid phases (and components)
|
||||
*
|
||||
* @return Fully formed management structure. Returns @c NULL in case of
|
||||
* allocation failure.
|
||||
*/
|
||||
struct compr_quantities_gen *
|
||||
compr_quantities_gen_allocate(size_t nc, size_t nf, int np);
|
||||
|
||||
|
||||
/**
|
||||
* Release resources acquired in a previous call to constructor function
|
||||
* compr_quantities_gen_allocate().
|
||||
*
|
||||
* Note that
|
||||
* <CODE>
|
||||
* compr_quantities_gen_deallocate(NULL)
|
||||
* </CODE>
|
||||
* is supported and benign (i.e., this statement behaves as
|
||||
* <CODE>free(NULL)</CODE>).
|
||||
*
|
||||
* @param[in,out] cq On input - compressible quantity management structure
|
||||
* obtained through a previous call to construction function
|
||||
* compr_quantities_gen_allocate(). On output - invalid pointer.
|
||||
*/
|
||||
void
|
||||
compr_quantities_gen_deallocate(struct compr_quantities_gen *cq);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@ -90,78 +90,6 @@ struct compr_src {
|
||||
double *saturation;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Create a management structure that is, initially, capable of storing a
|
||||
* specified number of sources defined by a particular number a fluid phases.
|
||||
*
|
||||
* @param[in] np Number of fluid phases. Must be positive to actually
|
||||
* allocate any sources.
|
||||
* @param[in] nsrc Initial management capacity. If positive, attempt to
|
||||
* allocate that number of source terms. Otherwise, the
|
||||
* initial capacity is treated as (and set to) zero.
|
||||
* @return Fully formed management structure if <CODE>np > 0</CODE> and
|
||||
* allocation success. @c NULL otherwise. The resources must be released using
|
||||
* destructor function compr_src_deallocate().
|
||||
*/
|
||||
struct compr_src *
|
||||
compr_src_allocate(int np, int nsrc);
|
||||
|
||||
|
||||
/**
|
||||
* Release memory resources acquired in a previous call to constructor function
|
||||
* compr_src_allocate() and, possibly, source term insertion function
|
||||
* append_compr_source_term().
|
||||
*
|
||||
* @param[in,out] src On input - source term management structure obtained
|
||||
* through a previous call to construction function compr_src_allocate().
|
||||
* On output - invalid pointer.
|
||||
*/
|
||||
void
|
||||
compr_src_deallocate(struct compr_src *src);
|
||||
|
||||
|
||||
/**
|
||||
* Insert a new explicit source term into an existing collection.
|
||||
*
|
||||
* @param[in] c Cell influenced by this source term.
|
||||
* @param[in] np Number of fluid phases. Used for consistency checking
|
||||
* only.
|
||||
* @param[in] v Source term total reservoir volume Darcy flux. Positive
|
||||
* if the source term is to be interpreted as an injection
|
||||
* source and negative otherwise.
|
||||
* @param[in] sat Injection composition for this source term. Array of size
|
||||
* @c np. Copied to internal storage, but the actual numbers
|
||||
* are not inspected unless <CODE>v > 0.0</CODE>.
|
||||
* @param[in,out] src On input - source term management structure obtained
|
||||
* through a previous call to construction function compr_src_allocate() and,
|
||||
* possibly, another call to function append_compr_source_term(). On output -
|
||||
* source term collection that includes the new source term if successful and
|
||||
* unchanged if not.
|
||||
*
|
||||
* @return One (1, true) if successful (i.e., if the new source term could be
|
||||
* included in the existing collection) and zero (0, false) if not.
|
||||
*/
|
||||
int
|
||||
append_compr_source_term(int c ,
|
||||
int np ,
|
||||
double v ,
|
||||
const double *sat,
|
||||
struct compr_src *src);
|
||||
|
||||
|
||||
/**
|
||||
* Empty source term collection while maintaining existing capacity.
|
||||
*
|
||||
* @param[in,out] src On input - an existing source term collection with a
|
||||
* given number of sources and source capacity. On output - an empty source
|
||||
* term collection (i.e., <CODE>src->nsrc == 0</CODE>) with an unchanged
|
||||
* capacity.
|
||||
*/
|
||||
void
|
||||
clear_compr_source_term(struct compr_src *src);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user