Actual source code: isregall.c

      1: #include <petsc/private/isimpl.h>
      2: PETSC_INTERN PetscErrorCode ISCreate_General(IS);
      3: PETSC_INTERN PetscErrorCode ISCreate_Stride(IS);
      4: PETSC_INTERN PetscErrorCode ISCreate_Block(IS);

      6: /*@C
      7:   ISRegisterAll - Registers all of the index set components in the `IS` package.

      9:   Not Collective

     11:   Level: advanced

     13: .seealso: [](sec_scatter), `IS`, `ISType`, `ISRegister()`
     14: @*/
     15: PetscErrorCode ISRegisterAll(void)
     16: {
     17:   PetscFunctionBegin;
     18:   if (ISRegisterAllCalled) PetscFunctionReturn(PETSC_SUCCESS);
     19:   ISRegisterAllCalled = PETSC_TRUE;

     21:   PetscCall(ISRegister(ISGENERAL, ISCreate_General));
     22:   PetscCall(ISRegister(ISSTRIDE, ISCreate_Stride));
     23:   PetscCall(ISRegister(ISBLOCK, ISCreate_Block));
     24:   PetscFunctionReturn(PETSC_SUCCESS);
     25: }