xref: /petsc/src/vec/is/is/impls/general/general.h (revision f37c82fbca2ef2d9869799d3305350a5f272bd86)
1 
2 #if !defined(__GENERAL_H)
3 #define __GENERAL_H
4 
5 /*
6     Defines the data structure used for the general index set
7 */
8 #include <petsc-private/isimpl.h>
9 
10 typedef struct {
11   PetscInt  N;          /* number of indices */
12   PetscInt  n;          /* local number of indices */
13   PetscBool sorted;     /* indicates the indices are sorted */
14   PetscBool allocated;  /* did we allocate the index array ourselves? */
15   PetscInt  *idx;
16 } IS_General;
17 
18 #endif
19