1 2 #include <petscpf.h> /*I "petscpf.h" I*/ 3 4 PETSC_EXTERN PetscErrorCode PFCreate_Constant(PF,void*); 5 PETSC_EXTERN PetscErrorCode PFCreate_String(PF,void*); 6 PETSC_EXTERN PetscErrorCode PFCreate_Quick(PF,void*); 7 PETSC_EXTERN PetscErrorCode PFCreate_Identity(PF,void*); 8 #if defined(PETSC_HAVE_MATLAB_ENGINE) 9 PETSC_EXTERN PetscErrorCode PFCreate_Matlab(PF,void*); 10 #endif 11 12 #undef __FUNCT__ 13 #define __FUNCT__ "PFRegisterAll" 14 /*@C 15 PFRegisterAll - Registers all of the preconditioners in the PF package. 16 17 Not Collective 18 19 Level: advanced 20 21 .keywords: PF, register, all 22 23 .seealso: PFRegister(), PFRegisterDestroy() 24 @*/ 25 PetscErrorCode PFRegisterAll(void) 26 { 27 PetscErrorCode ierr; 28 29 PetscFunctionBegin; 30 PFRegisterAllCalled = PETSC_TRUE; 31 32 ierr = PFRegister(PFCONSTANT, PFCreate_Constant);CHKERRQ(ierr); 33 ierr = PFRegister(PFSTRING, PFCreate_String);CHKERRQ(ierr); 34 ierr = PFRegister(PFQUICK, PFCreate_Quick);CHKERRQ(ierr); 35 ierr = PFRegister(PFIDENTITY, PFCreate_Identity);CHKERRQ(ierr); 36 #if defined(PETSC_HAVE_MATLAB_ENGINE) 37 ierr = PFRegister(PFMATLAB, PFCreate_Matlab);CHKERRQ(ierr); 38 #endif 39 PetscFunctionReturn(0); 40 } 41 42 43