Actual source code: isregall.c

petsc-3.7.5 2017-01-01
Report Typos and Errors
  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);

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

 12:   Not Collective

 14:   Level: advanced

 16: .keywords: IS, register, all
 17: .seealso:  ISRegister(), ISRegisterDestroy()
 18: @*/
 19: PetscErrorCode  ISRegisterAll(void)
 20: {

 24:   if (ISRegisterAllCalled) return(0);
 25:   ISRegisterAllCalled = PETSC_TRUE;

 27:   ISRegister(ISGENERAL, ISCreate_General);
 28:   ISRegister(ISSTRIDE,  ISCreate_Stride);
 29:   ISRegister(ISBLOCK,   ISCreate_Block);
 30:   return(0);
 31: }