mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-11 05:45:36 -06:00
Added extern "C" statements for C++ compatibility.
This commit is contained in:
parent
f3e5ad1723
commit
767b9f3b8b
10
flow_bc.h
10
flow_bc.h
@ -3,6 +3,11 @@
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
enum flowbc_type { UNSET, PRESSURE, FLUX };
|
||||
|
||||
typedef struct {
|
||||
@ -17,4 +22,9 @@ allocate_flowbc(size_t nf);
|
||||
void
|
||||
deallocate_flowbc(flowbc_t *fbc);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* FLOW_BC_H_INCLUDED */
|
||||
|
@ -3,6 +3,10 @@
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#if defined(MATLAB_MEX_FILE) && MATLAB_MEX_FILE
|
||||
#include <mex.h>
|
||||
#undef MAT_SIZE_T
|
||||
@ -46,4 +50,8 @@ csrmatrix_delete(struct CSRMatrix *A);
|
||||
void
|
||||
csrmatrix_zero(struct CSRMatrix *A);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* SPARSE_SYS_H_INCLUDED */
|
||||
|
10
well.h
10
well.h
@ -1,6 +1,11 @@
|
||||
#ifndef WELL_H_INCLUDED
|
||||
#define WELL_H_INCLUDED
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
enum well_type { INJECTOR, PRODUCER };
|
||||
enum well_control { BHP , RATE };
|
||||
|
||||
@ -25,4 +30,9 @@ deallocate_cell_wells(int *cvpos, int *cwells);
|
||||
void
|
||||
derive_cell_wells(int nc, well_t *W, int *cwpos, int *cwells);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* WELL_H_INCLUDED */
|
||||
|
Loading…
Reference in New Issue
Block a user