1*7d0a6c19SBarry Smith 2292f8084SBarry Smith #include "petscpf.h" /*I "petscpf.h" I*/ 3292f8084SBarry Smith 4292f8084SBarry Smith EXTERN_C_BEGIN 57087cfbeSBarry Smith extern PetscErrorCode PFCreate_Constant(PF,void*); 67087cfbeSBarry Smith extern PetscErrorCode PFCreate_String(PF,void*); 77087cfbeSBarry Smith extern PetscErrorCode PFCreate_Quick(PF,void*); 87087cfbeSBarry Smith extern PetscErrorCode PFCreate_Identity(PF,void*); 9909a696eSBarry Smith #if defined(PETSC_HAVE_MATLAB_ENGINE) 107087cfbeSBarry Smith extern PetscErrorCode PFCreate_Matlab(PF,void*); 11292f8084SBarry Smith #endif 12292f8084SBarry Smith EXTERN_C_END 13292f8084SBarry Smith 14292f8084SBarry Smith #undef __FUNCT__ 15292f8084SBarry Smith #define __FUNCT__ "PFRegisterAll" 16292f8084SBarry Smith /*@C 17292f8084SBarry Smith PFRegisterAll - Registers all of the preconditioners in the PF package. 18292f8084SBarry Smith 19292f8084SBarry Smith Not Collective 20292f8084SBarry Smith 21292f8084SBarry Smith Input Parameter: 22292f8084SBarry Smith . path - the library where the routines are to be found (optional) 23292f8084SBarry Smith 24292f8084SBarry Smith Level: advanced 25292f8084SBarry Smith 26292f8084SBarry Smith .keywords: PF, register, all 27292f8084SBarry Smith 28292f8084SBarry Smith .seealso: PFRegisterDynamic(), PFRegisterDestroy() 29292f8084SBarry Smith @*/ 307087cfbeSBarry Smith PetscErrorCode PFRegisterAll(const char path[]) 31292f8084SBarry Smith { 32292f8084SBarry Smith PetscErrorCode ierr; 33292f8084SBarry Smith 34292f8084SBarry Smith PetscFunctionBegin; 35292f8084SBarry Smith PFRegisterAllCalled = PETSC_TRUE; 36292f8084SBarry Smith 37292f8084SBarry Smith ierr = PFRegisterDynamic(PFCONSTANT ,path,"PFCreate_Constant",PFCreate_Constant);CHKERRQ(ierr); 38292f8084SBarry Smith ierr = PFRegisterDynamic(PFSTRING ,path,"PFCreate_String",PFCreate_String);CHKERRQ(ierr); 39292f8084SBarry Smith ierr = PFRegisterDynamic(PFQUICK ,path,"PFCreate_Quick",PFCreate_Quick);CHKERRQ(ierr); 40292f8084SBarry Smith ierr = PFRegisterDynamic(PFIDENTITY ,path,"PFCreate_Identity",PFCreate_Identity);CHKERRQ(ierr); 41909a696eSBarry Smith #if defined(PETSC_HAVE_MATLAB_ENGINE) 42292f8084SBarry Smith ierr = PFRegisterDynamic(PFMATLAB ,path,"PFCreate_Matlab",PFCreate_Matlab);CHKERRQ(ierr); 43292f8084SBarry Smith #endif 44292f8084SBarry Smith PetscFunctionReturn(0); 45292f8084SBarry Smith } 46292f8084SBarry Smith 47292f8084SBarry Smith 48