1 #include <petsc/private/isimpl.h> /*I "petscis.h" I*/ 2 PETSC_INTERN PetscErrorCode ISCreate_General(IS); 3 PETSC_INTERN PetscErrorCode ISCreate_Stride(IS); 4 PETSC_INTERN PetscErrorCode ISCreate_Block(IS); 5 6 /*@C 7 ISRegisterAll - Registers all of the index set components in the `IS` package. 8 9 Not Collective 10 11 Level: advanced 12 13 .seealso: [](sec_scatter), `IS`, `ISType`, `ISRegister()` 14 @*/ ISRegisterAll(void)15PetscErrorCode ISRegisterAll(void) 16 { 17 PetscFunctionBegin; 18 if (ISRegisterAllCalled) PetscFunctionReturn(PETSC_SUCCESS); 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(PETSC_SUCCESS); 25 } 26