xref: /petsc/src/vec/is/is/interface/isregall.c (revision 0ea77eda237b1068ff0d8bfa28c3463dc2087695)
1 
2 #include <petsc/private/isimpl.h> /*I  "petscis.h"  I*/
3 PETSC_EXTERN PetscErrorCode ISCreate_General(IS);
4 PETSC_EXTERN PetscErrorCode ISCreate_Stride(IS);
5 PETSC_EXTERN PetscErrorCode ISCreate_Block(IS);
6 
7 /*@C
8   ISRegisterAll - Registers all of the index set components in the IS package.
9 
10   Not Collective
11 
12   Level: advanced
13 
14 .seealso: `ISRegister()`
15 @*/
16 PetscErrorCode ISRegisterAll(void) {
17   PetscFunctionBegin;
18   if (ISRegisterAllCalled) PetscFunctionReturn(0);
19   ISRegisterAllCalled = PETSC_TRUE;
20 
21   PetscCall(ISRegister(ISGENERAL, ISCreate_General));
22   PetscCall(ISRegister(ISSTRIDE, ISCreate_Stride));
23   PetscCall(ISRegister(ISBLOCK, ISCreate_Block));
24   PetscFunctionReturn(0);
25 }
26