xref: /petsc/include/petscis.h (revision 20563c6b1ea7b82b48c81bbd22ce9170a8c92d3b)
12eac72dbSBarry Smith 
22eac72dbSBarry Smith /*
32eac72dbSBarry Smith       An index set is essentially a subset of the integers
42eac72dbSBarry Smith */
52eac72dbSBarry Smith #if !defined(__IS_PACKAGE)
62eac72dbSBarry Smith #define __IS_PACKAGE
72eac72dbSBarry Smith #include "petsc.h"
82eac72dbSBarry Smith 
92eac72dbSBarry Smith typedef struct _IS* IS;
102eac72dbSBarry Smith 
11aabeff55SBarry Smith extern int    ISCreateSequential(int,int *,IS *);
12aabeff55SBarry Smith #if defined(USING_MPI)
13*20563c6bSBarry Smith extern int    ISCreateMPI(int,int,int *,MPI_Comm,IS *);
14aabeff55SBarry Smith #endif
15aabeff55SBarry Smith extern int    ISCreateStrideSequential(int,int,int,IS *);
16*20563c6bSBarry Smith extern int    ISStrideGetInfo(IS,int *,int*);
172eac72dbSBarry Smith 
18aabeff55SBarry Smith extern int   ISSetPermutation(IS);
19aabeff55SBarry Smith extern int   ISIsPermutation(IS);
20aabeff55SBarry Smith extern int   ISGetIndices(IS,int **);
21aabeff55SBarry Smith extern int   ISRestoreIndices(IS,int **);
22aabeff55SBarry Smith extern int   ISGetSize(IS,int *);
23aabeff55SBarry Smith extern int   ISGetLocalSize(IS,int *);
24aabeff55SBarry Smith extern int   ISDestroy(IS);
25aabeff55SBarry Smith extern int   ISInvertPermutation(IS,IS*);
26aabeff55SBarry Smith extern int   ISView(IS,Viewer);
27aabeff55SBarry Smith 
282eac72dbSBarry Smith #endif
29