Actual source code: isregall.c

petsc-3.12.0 2019-09-29
Report Typos and Errors

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

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

 10:   Not Collective

 12:   Level: advanced

 14: .seealso:  ISRegister()
 15: @*/
 16: PetscErrorCode  ISRegisterAll(void)
 17: {

 21:   if (ISRegisterAllCalled) return(0);
 22:   ISRegisterAllCalled = PETSC_TRUE;

 24:   ISRegister(ISGENERAL, ISCreate_General);
 25:   ISRegister(ISSTRIDE,  ISCreate_Stride);
 26:   ISRegister(ISBLOCK,   ISCreate_Block);
 27:   return(0);
 28: }