xref: /petsc/src/vec/is/is/impls/general/general.h (revision 9dd11ecf0918283bb567d8b33a92f53ac4ea7840)
1 #pragma once
2 
3 /*
4     Defines the data structure used for the general index set
5 */
6 #include <petsc/private/isimpl.h>
7 
8 typedef struct {
9   PetscBool sorted;    /* indicates the indices are sorted */
10   PetscBool allocated; /* did we allocate the index array ourselves? */
11   PetscInt *idx;
12 } IS_General;
13