mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Made all C headers includeable from C++.
This commit is contained in:
parent
6530a16785
commit
799dc936cd
10
dfs.h
10
dfs.h
@ -20,6 +20,16 @@
|
|||||||
#ifndef DFS_H_INCLUDED
|
#ifndef DFS_H_INCLUDED
|
||||||
#define DFS_H_INCLUDED
|
#define DFS_H_INCLUDED
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
void dfs (int size, int *ia, int *ja, int *ncolors, int *color, int* work);
|
void dfs (int size, int *ia, int *ja, int *ncolors, int *color, int* work);
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -20,6 +20,10 @@
|
|||||||
#ifndef PARTITION_H_INCLUDED
|
#ifndef PARTITION_H_INCLUDED
|
||||||
#define PARTITION_H_INCLUDED
|
#define PARTITION_H_INCLUDED
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
partition_unif_idx(int ndims, int nc,
|
partition_unif_idx(int ndims, int nc,
|
||||||
const int *fine_d,
|
const int *fine_d,
|
||||||
@ -50,4 +54,9 @@ partition_localidx(int nblk, const int *pi, const int *inverse,
|
|||||||
int
|
int
|
||||||
partition_split_disconnected(int nc, int nneigh, const int *neigh,
|
partition_split_disconnected(int nc, int nneigh, const int *neigh,
|
||||||
int *p);
|
int *p);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* PARTITION_H_INLCUDED */
|
#endif /* PARTITION_H_INLCUDED */
|
||||||
|
Loading…
Reference in New Issue
Block a user