mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-14 22:13:25 -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
|
||||
#define DFS_H_INCLUDED
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
void dfs (int size, int *ia, int *ja, int *ncolors, int *color, int* work);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@ -20,6 +20,10 @@
|
||||
#ifndef PARTITION_H_INCLUDED
|
||||
#define PARTITION_H_INCLUDED
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
int
|
||||
partition_unif_idx(int ndims, int nc,
|
||||
const int *fine_d,
|
||||
@ -50,4 +54,9 @@ partition_localidx(int nblk, const int *pi, const int *inverse,
|
||||
int
|
||||
partition_split_disconnected(int nc, int nneigh, const int *neigh,
|
||||
int *p);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* PARTITION_H_INLCUDED */
|
||||
|
Loading…
Reference in New Issue
Block a user